Search:

Type: Posts; User: newtolearningjava

Page 1 of 2 1 2

Search: Search took 0.10 seconds.

  1. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    Any soloution for this?
  2. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    I have been playing around with the game. I did what you said and added the system.out.println as you can see in the code below:
  3. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    is only ca is only ca
  4. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    if i pits my
  5. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    how do i change these
  6. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    please can you show me the line of code you use to only add a listener once?



    public class game extends JFrame implements ActionListener{


    isit like this?
  7. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    haha

    quite a few.
  8. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    it opens
  9. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    yes i have it working BUT when i click the button to open the new gui it opens more than 1 so how i get rid of that?
  10. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    here is the mini program you told me to make it works

    IN MY ORIGINAL PROGRAM IT DOES NOT WORK WHICH IS WHAT IM TRYING TO GET WORKING
  11. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    did u make changes in the code which is on post no37?[COLOR="Silver"]

    --- Update ---
  12. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    so remove this line of code ????


    JFrame frame = new JFrame();


    if i do this there is error for cannot find symbol
    symbol: method add(JPanel,String)
    location: class Object
    ----
  13. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    BUT when i complie my code there is no gui it just says


    BUILD SUCCESSFUL (total time: 6 seconds)
  14. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    this is my original code when i get rid of frame nothing appears when it is complied
    D OF ??
  15. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    in my original code i have so this why i have done it like this in the program. how do i fix it?

    I was told i have to use EXTEND JFrame


    public class game extends JFrame {
  16. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    m that compiles, executes and shows the problem?
    m that compiles, executes and shows the problem?
    m that compiles, executes and shows the problem?
  17. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    it opens the new gui but never closes the old one
  18. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    Am i on the right track here?
  19. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    i updated the name.
  20. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    [/COLOR]

    what does mean?
  21. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    norm please help me to do this, been trying to solve this for hours
  22. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    how do i do this?
  23. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    omg

    i am confused
  24. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    i have updated the code in post no 12
  25. Replies
    63
    Views
    7,397

    Re: dispose(); not working

    public class game extends JFrame{
    //some code


    }}
Results 1 to 25 of 32
Page 1 of 2 1 2