Hi everyone,
I have no idea the number of JButtons in your application but where's the source??
Try this
public void actionPerformed(ActionEvent e)
{
JButton B = (JButton)e.getSource();
if(B == enter)
Numtemp = displayN.getText();
Base = displayB.getText();
convert();
FindPalindrome();
reconvert();
print();
}
}
I hope this helps you
Yours Sincerely
Richard West
freesoft_2000
Practically a Master Poster
623 posts since Jun 2004
Reputation Points: 25
Solved Threads: 10
Debugging 101: Put some system.out.println()'s throughout the actionPerformed() method, and all methods it calls. check to make sure all variables have the proper values, and that it even enters certain methods.
By the way, what are you doing with these lines:
Numtemp = displayN.getText();
Base = displayB.getText();
If those are used in the coorisponding methods called, I would suggest passing them as parameters instead.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
never surrender !!!
just replace
JButton B = (JButton)e.getSource();
with
Object obj = e.getSource();
your Container probably freeze, put your long action(s) to the backGround Task, and if is method "print()"
real outPut to PrinterJob, hmmmm ...
mKorbel
Veteran Poster
1,141 posts since Feb 2011
Reputation Points: 480
Solved Threads: 224
This thread is from 2005. I assume the OP has moved on. Closing.
Ezzaral
Posting Genius
15,985 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847