Forums Register Login

jlabel.setbounds() in jpanel

+Pie Number of slices to send: Send
Hello ,

I m trying to work with the following code in order to change the location of jlabel at runtime , but when i minimize the frame, the jlabels get set back to their original positions .
Could any one help please ? i have a frame , a jpanel on it and a jlable on jpanel which i want to position on mouse drag.

Thanks in advance !
+Pie Number of slices to send: Send
 

yogessh chavaan wrote:


What?But please follow standard Java coding conventions; variable names should start with a lowercase letter. the uppercase X doesn't conform to the convention.
Nothing up my sleeve ... and ... presto! A tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2805 times.
Similar Threads
Add greyish/ghosted drag images to the tree
Problem when repainting rectangles
please help me
Drawing in Graphic-Context of a JPanel in a JPanel
Timing ( good programming practice?)
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 07:29:45.