TS4268 iMessage don't run but I paid 30 cent for activation. Solutions?!?

iMessage don't run but I paid 30 cent for activation. Solutions?!?
Thanks

In main() when you coded Thread.sleep(..) you wanted main thread to sleep so your xmitt could run. I think you can leave it as it is even with your terminating button.
I do not want to critisize but it looks like your concept is wrong. Usually this kind of program have kind of diffrent design. Not going into details like this:
class Xmitt implements Runnable {
volatile boolean keepRunning;
other members ....
public void run() {
transmit();
public void transmit() {
keepRunning = true;
while(keepRunning) {
try{...}
catch{}
public void stopTransmitting() {
keepRunning = false;
//maybe Thread.currentThread().interrupt() or stop() //which is deprecated
public class TransTest extends JPanel {
Xmitt xmitt;
JButton start;
JButton stop;
public TransTest() {
add buttons with actionlisteners:
if(startbutton) {
Thread xmittthread = new Thread(xmitt);
xmittthread.start();
if(stopbutton) {
xmitt.stopTransmitting();
public static void main(String[] args) {
TransTest tt = new TransTest();
JFrame f = new JFrame("Transmitter");
f.setContentPane(tt);
f.setSize(..);
f.setVisible();
System.exit(0);
You can use other methods then boolean to stop if there are i/o operations which can be tough to interrut.
Anyway, to implement this program nicely, you need to learn more about threads, it's not that easy.
Happy transmitting!

Similar Messages

Maybe you are looking for

  • How to transfer adobe acrobat XI registration from one desktop to another (bought new PC).

    how do you  transfer adobe acrobat XI registration from one desktop to another (bought new PC).  Need to use ASAP!

  • Transferring email addresses from one account to another

    I'm not sure if this is a good place to post this but after spending a good bit of time on the phone with FiOS customer service and technical support I just feel like venting my frustrations and hope that maybe someone could give me a valid explanati

  • My listener was not working

    Dear all, could u plz find the below error Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=lei.four-soft.com)(PORT=1520))) TNS-12547: TNS:lost contact TNS-12560: TNS:protocol adapter error TNS-00517: Lost contact Linux Error: 104: Connection

  • How to change color effect

    hey to everybody.. i am trying to change color effect of a image in different condition such as when mouse move on image or click on image. the thing is that how to get color effects such as dim .... bright of images... help plz..............

  • OO4O Vs ADO ?

    Hi I am planning to use OO4O for my application. But, since it doesnt support Crystal reports, I am forced to create two sessions for each user(one for OO4O-appn. and other for ADO-Crystal Report) currently logged in my application. Is there any othe