This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I need to have an applet, starting with only one Jbutton.
When that button is clicked , a JLabel prompts to enter an integer into
a JTextfield, and shows another button with the name "Double me".
If the button is clicked, the integer is doubled and displayed in the JTextField.
I tried to accomplish that with visibility flags, but it won't play nice in the applet.
here is my code so far.
I'm messing with this for a while now, so hopefully someone can't point
me into the right direction.
Every help is greatly appreciated.
Yes, it sort of looked as if you typed "gets" into your code and then let your IDE choose the rest of the name of the method. And it chose getSize rather than getSource. But anyway now it looks like you have workable code.