C
Christian Otteneuer
Hallo NG,
somehow, I am lost in my source code. I hope, you can help me. I have
the following problem:
I have a JPanel and a JButton which I add to another JPanel
JPanel mainPanel();
mainPanel.setLayout(new BoxLayout(mainPanel,BoxLayout.LINE_AXIS));
JPanel internalPanel();
....
JButton myButton();
....
mainPanel.add(internalPanel);
mainPanel.add(myButton);
I want to arrange the 2 components on the _bottom_ of mainPanel. A
tutorial is here:
http://java.sun.com/docs/books/tutorial/uiswing/layout/box.html#alignment
Unfortunately, I don't understand the example
Can anyone help me and give me a hint how I have to change my source code?
Cheers,
Chris
somehow, I am lost in my source code. I hope, you can help me. I have
the following problem:
I have a JPanel and a JButton which I add to another JPanel
JPanel mainPanel();
mainPanel.setLayout(new BoxLayout(mainPanel,BoxLayout.LINE_AXIS));
JPanel internalPanel();
....
JButton myButton();
....
mainPanel.add(internalPanel);
mainPanel.add(myButton);
I want to arrange the 2 components on the _bottom_ of mainPanel. A
tutorial is here:
http://java.sun.com/docs/books/tutorial/uiswing/layout/box.html#alignment
Unfortunately, I don't understand the example
Can anyone help me and give me a hint how I have to change my source code?
Cheers,
Chris