This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Making a JPanel manually resizable
I am doing a chat program with javaswing and I would like to create a separator that can adjust the dimension of 2 pannels "
The black line could reduce the height of the top panel and increase the bottom one.
How this is possiblle ? What layout sould I use ? Thank you very much.
Regards.
Try JSplitPane.
How to use SplitPanes?
Examples of JSplitPane
Related
This question already has answers here:
Rotating a JTextField vertically
(2 answers)
Closed 7 years ago.
Is it possible to rotate a JButton? In other words, I want to change the JButton's angle, for example to 45°. Is there a particular method for this? Thank you in advance.
As i know you can get absolution position of button with layouts.You can set any position of your elemnt in frame.AS i know it's impossible to rotate a button. You can implements Component and try to create your , and try to draw as you want. But i think rotating button is absolutely unreal.
This question already has answers here:
How to make JTextArea Stick to the window
(2 answers)
Closed 8 years ago.
I am designing a frame in java swing, which has 2 buttons on the end as I resize the window the gap between buttons are spread and they go far.
Please provide me solution as i want buttons to be in the bottom corner and the frame is resized the spaces should not increase.
Put the buttons in a right aligned flow layout, then add the flow layout (the panel) to the page end of a border layout.
This question already has answers here:
How do I change JPanel inside a JFrame on the fly?
(14 answers)
Clear components of JFrame and add new components
(2 answers)
Closed 8 years ago.
I am working on a 15 puzzle.
I need to change the JPanel in the JFrame for a new game.
The reason is that some games have 16 buttons while others have 9 or 25. Sometimes the buttons have a number, but sometimes they have pieces of a picture.
I would like to set up my JPanel, then set it into the JFrame.
The only way that I have been able to achieve this so far is to create a new JFrame, but that outputs a new window.
Is it possible to change the JPanel in the JFrame in java?
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to change JFrame Icon
I want to put Logo or some icon on the corner of window in my Java desktop application.
How to do that?
Use setIconImage(ImageIcon) for this.
This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
How to add scrollbar to panel ?
I'm trying to draw some shapes on a jPanel, once the shapes reach the panel size, the rest of shapes are not visibles.
can I add a scrollbar to the panel in order to see the rest of the shapes?
Sure: wrap your JPanel into a JScrollPane (it takes any Component in its constructor)