Search:

Type: Posts; User: andbin

Search: Search took 0.10 seconds.

  1. Replies
    18
    Views
    2,559

    Re: what does this Java programming error mean?

    XYZ .... one of NORTH, SOUTH etc in BorderLayout.
    Please, see and always keep handy the javadoc documentation!

    BorderLayout (Java Platform SE 7 )


    Your code is still a bit "confused" and not...
  2. Replies
    18
    Views
    2,559

    Re: what does this Java programming error mean?

    And then it means that you have not understood ..... From the last code I see, you have not done any progress, you are still using the same ugly names (e.g. pl as instance variable and also as local...
  3. Replies
    18
    Views
    2,559

    Re: what does this Java programming error mean?

    Listen, try to understand and follow these macro-steps:

    1) Create a JTextField, named e.g. inputField.
    2) Create a JPanel, named e.g. buttonsPanel, set a GridLayout on it and add all the N...
  4. Replies
    18
    Views
    2,559

    Re: what does this Java programming error mean?

    Did you understand that this 'pl', being set as the content pane is the only thing visible in the frame?
  5. Replies
    18
    Views
    2,559

    Re: what does this Java programming error mean?

    Sorry, but the code I see here is very confused and with useless things.

    First, you set 3 times a BorderLayout on pl. You added 2 times Field in pl, one time in "North" (before, I have told you...
  6. Replies
    18
    Views
    2,559

    Re: what does this Java programming error mean?

    Firstly, you need a "container" with a BorderLayout. This container could be directly the content-pane of JFrame or a JPanel which in turn is into the content-pane .... in the end it's not very...
  7. Replies
    18
    Views
    2,559

    Re: what does this Java programming error mean?

    I don't/can't know what are your expectations about the layout/appearance of your user interface .... clarify and explain please.

    (in other words: describe with words your UI)
  8. Replies
    18
    Views
    2,559

    Re: what does this Java programming error mean?

    This is certainly wrong. You can't add a component into itself.

    And also note, the add version:

    add(String name, Component comp)

    is obsolete, please use:

    add(Component comp, Object...
Results 1 to 8 of 8