Wait, the mkay class extends the JFrame, so that s the other wiindow, right?
The code works if you dont create another frame inside the mkay class.
--Thanks for helping me
Type: Posts; User: sbjibo
Wait, the mkay class extends the JFrame, so that s the other wiindow, right?
The code works if you dont create another frame inside the mkay class.
--Thanks for helping me
I think thats the only line where the window is created. Could you tell me where is the other window being created?
It is created at line 20 of my program. The title of the window is "Which button Demo"
I dont understand why two windows are created. When I say 'mkay app = new mkay(), that should make a window. So where is the other window coming from?
Does the fact that I made it in 'Ready To Program' matter ? because my friend made a code simililar to this in netbeans, and it worked.
When you write app.setVisible(true), it creates a new window, but it has no components. its just an empty frame.
When you execute the program, a frame with a text field, and 2 buttons labeled button1 and button 2.
But the program is not supposed to show anything
Here is a code I made to practice how to make JFrame and add components to it.
But the problem is:
1. On line 8, shouldn't the frame turn invisible?
2. On line 7, shouldn't the frame be in the...