Results 1 to 3 of 3
  1. #1
    farahm is offline Member
    Join Date
    Nov 2010
    Location
    Beirut, Lebanon
    Posts
    36
    Rep Power
    0

    Default Is the problem with my code or bluej?

    Ok so i programmed an application somewhat like notepad which has a new,save,load, and quit buttons, a textarea and a JLabel.
    Now the first time i run the main class on bluej the textarea and the save and load buttons doent show but when i close the window and run main again it works normally. what could be the problem?
    i cant provide the code since i worked with several classes though if the problem is in my code i just cant figure out why.
    thank you for your help

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    As I see things:

    Odds are that the problem is with Java/BlueJ: less then 1:10000
    Odds are that the problem is in your code: much higher.
    Chances of us being able to help further based on information provided: quite low.

    Sounds like you're going to have to do a bit of debugging including isolating and testing sections of code, until you can find the offending portion.

    Much luck!

  3. #3
    farahm is offline Member
    Join Date
    Nov 2010
    Location
    Beirut, Lebanon
    Posts
    36
    Rep Power
    0

    Default

    Ok so i figured out the problem.
    the frame.visible(true); invocation should be be inserted at the end of the main since each time a method is invoked the components are altered.
    thank for your help anyways

Similar Threads

  1. Replies: 0
    Last Post: 02-21-2011, 11:50 AM
  2. bluej hashset problem ;s
    By truant420 in forum Other IDEs
    Replies: 2
    Last Post: 12-07-2010, 05:56 PM
  3. Need help with blueJ
    By samd89 in forum Other IDEs
    Replies: 6
    Last Post: 12-06-2010, 04:59 PM
  4. BlueJ help
    By Cid17 in forum New To Java
    Replies: 2
    Last Post: 06-29-2009, 07:38 PM
  5. help using BlueJ
    By zoe in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 06:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •