Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Runtime Error

  1. #1
    Junior Member
    Join Date
    Feb 2011
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Misbehaving JFrame, JButtons, when button has been clicked.

    problem solved.
    Last edited by SyntheticD; February 10th, 2011 at 03:23 PM.


  2. #2
    Member samfin's Avatar
    Join Date
    Dec 2010
    Location
    Manchester UK
    Posts
    37
    Thanks
    1
    Thanked 5 Times in 4 Posts

    Default Re: Runtime Error

    I've run this and this is what I get



    I don't see an extra button, what is the problem you're having?

  3. #3
    Junior Member
    Join Date
    Feb 2011
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Runtime Error

    Quote Originally Posted by samfin View Post
    I've run this and this is what I get



    I don't see an extra button, what is the problem you're having?
    Hey,

    but I get this, same codes..
    I'm using Eclipse, there's a link above to the results Im getting.
    Last edited by SyntheticD; February 10th, 2011 at 03:23 PM.

  4. #4
    Member samfin's Avatar
    Join Date
    Dec 2010
    Location
    Manchester UK
    Posts
    37
    Thanks
    1
    Thanked 5 Times in 4 Posts

    Default Re: Runtime Error

    That is odd, I've tried it in Eclipse and Netbeans and compiling from command line and each one gives the right output without the extra button at the top so the code is right, there must be something wrong within your Eclipse. I'm not so good with Eclipse (mainly use Netbeans) so can't suggest anything. Has anyone else on here got any suggestions?

  5. #5
    Junior Member
    Join Date
    Feb 2010
    Posts
    18
    My Mood
    Amazed
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Runtime Error

    Quote Originally Posted by samfin View Post
    That is odd, I've tried it in Eclipse and Netbeans and compiling from command line and each one gives the right output without the extra button at the top so the code is right, there must be something wrong within your Eclipse. I'm not so good with Eclipse (mainly use Netbeans) so can't suggest anything. Has anyone else on here got any suggestions?
    After you mentioned it, I tried it on my mac.. with eclipse.. and it works fine.
    The windowing is only acting funky on Win7. Any idea why ?

  6. #6
    Member samfin's Avatar
    Join Date
    Dec 2010
    Location
    Manchester UK
    Posts
    37
    Thanks
    1
    Thanked 5 Times in 4 Posts

    Default Re: Runtime Error

    Best guess would be that this is a problem with your Java version. Google should be able to tell you which versions are compatible with Win 7 and which might cause problems

Similar Threads

  1. Runtime.getRuntime().exec(command) - I get nothing
    By andersbk in forum What's Wrong With My Code?
    Replies: 0
    Last Post: October 7th, 2010, 08:47 PM
  2. Runtime Error running in UVA
    By mathfxr in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 17th, 2010, 02:06 PM
  3. Create buttons at runtime
    By rtumatt in forum AWT / Java Swing
    Replies: 2
    Last Post: May 24th, 2010, 06:42 AM
  4. How to Navigate to a URL with Runtime.getRuntime().exec()
    By Flash in forum Java SE API Tutorials
    Replies: 4
    Last Post: October 5th, 2009, 07:18 PM
  5. Getting Null Pointer Exception in runtime
    By RoadRunner in forum Exceptions
    Replies: 1
    Last Post: April 26th, 2009, 01:21 PM