Search:

Type: Posts; User: sbjibo

Search: Search took 0.09 seconds.

  1. Replies
    14
    Views
    1,542

    Re: Frame not becoming invisible

    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
  2. Replies
    14
    Views
    1,542

    Re: Frame not becoming invisible

    I think thats the only line where the window is created. Could you tell me where is the other window being created?
  3. Replies
    14
    Views
    1,542

    Re: Frame not becoming invisible

    It is created at line 20 of my program. The title of the window is "Which button Demo"
  4. Replies
    14
    Views
    1,542

    Re: Frame not becoming invisible

    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?
  5. Replies
    14
    Views
    1,542

    Re: Frame not becoming invisible

    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.
  6. Replies
    14
    Views
    1,542

    Re: Frame not becoming invisible

    When you write app.setVisible(true), it creates a new window, but it has no components. its just an empty frame.
  7. Replies
    14
    Views
    1,542

    Re: Frame not becoming invisible

    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
  8. Replies
    14
    Views
    1,542

    Frame not becoming invisible

    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...
Results 1 to 8 of 8