Search:

Type: Posts; User: nggdowt

Search: Search took 0.09 seconds.

  1. [SOLVED] Re: .show is called in card layout, but the frame didn't update

    Solved t myself,
    in Core.java.

    The line

    Core core = new Core();
    in the main method should be

    Core core = Core.getInstance();
  2. [SOLVED] Re: difference between action event from 2 buttons with same name?

    oh that's a great suggestion, I think I am getting there. that way I can create the exact amount of action listener according to user input :D you save my day *kiss*

    P.S. I am a dude, don't expect...
  3. [SOLVED] Re: difference between action event from 2 buttons with same name?

    right, if anyone wants to know why, I am generating buttons according to use input. I am scan an array for inputs, if the array is {a,a,a,b,a} my code will generate 5 buttons in the order of...
  4. [SOLVED] difference between action event from 2 buttons with same name?

    first of all, I am sorry if I post it in the wrong sub-forum...but I guess this is a GUI problem..?I am not sure :<

    the code below will probably explain the problem I got, but my goal is to have...
  5. [SOLVED] .show is called in card layout, but the frame didn't update

    I am not sure what is going on to be honest, I have another card layout system in my code and it works fine.

    Summary of what I noticed :
    1. there are no errors.
    2. when I try to switch from...
  6. Replies
    7
    Views
    1,712

    [SOLVED] Re: The button wouldn't show on the panel

    Thanks for all the great advice!
    right, so the real problem. The constructor of ResPanel didn't get called at all...
    The first thing I tried is changing
    ResPanel r = new ResPanel(); to
    JPanel r...
  7. Replies
    7
    Views
    1,712

    [SOLVED] Re: The button wouldn't show on the panel

    First of all, thanks for the quick reply.(for a moment I though my post was deleted lol)

    I am sorry if I didn't make it clear, but I kinda want to keep a certain "style" for the code.
    The new...
  8. Replies
    3
    Views
    2,240

    [SOLVED] Re: Insurance Premium class not compiling

    line 36, else if (gender == female)

    should be (gender == "female") because you are checking if the gender equals to a string "female" and not checking against a variable called female.
  9. Replies
    7
    Views
    1,712

    [SOLVED] The button wouldn't show on the panel that's inside another panel

    My problem is the the Button"test2" in the constructor won't show up. I have no idea what is wrong and there are no error at all.

    My Goal is to create serveral classes that represent a part of my...
Results 1 to 9 of 10