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...
Type: Posts; User: andbin
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...
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...
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...
Did you understand that this 'pl', being set as the content pane is the only thing visible in the frame?
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...
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...
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)
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...