I
iherage
Hello,
I have a question about how to resize the JPanel with mouse.
There are mainPanel, jPanel1 and jPanel2. The Layout of mainPanel is
BorderLayout. jPanel1 is added to the west while jPanel2 is added to
the center.
What I am going to implement is to move the mouse over the border of
jPanel1, then it shall change to Cursor.E_RESIZE_CURSOR. And with the
move of the mouse, jPanel1 and jPanel2 shall be resized.
Anyone has ideas about this? I have googled again and again and try it
myself. But I still cannot make it.
Can anyone provide some help for me. Thank you for the help.
I have a question about how to resize the JPanel with mouse.
There are mainPanel, jPanel1 and jPanel2. The Layout of mainPanel is
BorderLayout. jPanel1 is added to the west while jPanel2 is added to
the center.
What I am going to implement is to move the mouse over the border of
jPanel1, then it shall change to Cursor.E_RESIZE_CURSOR. And with the
move of the mouse, jPanel1 and jPanel2 shall be resized.
Anyone has ideas about this? I have googled again and again and try it
myself. But I still cannot make it.
Can anyone provide some help for me. Thank you for the help.