This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes jlabel.setbounds() in jpanel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "jlabel.setbounds() in jpanel " Watch "jlabel.setbounds() in jpanel " New topic
Author

jlabel.setbounds() in jpanel

yogessh chavaan
Greenhorn

Joined: Apr 08, 2011
Posts: 13

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 !
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

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.


luck, db
There are no new questions, but there may be new answers.
 
Consider Paul's rocket mass heater.
 
subject: jlabel.setbounds() in jpanel
 
Similar Threads
Add greyish/ghosted drag images to the tree
please help me
Drawing in Graphic-Context of a JPanel in a JPanel
Problem when repainting rectangles
Timing ( good programming practice?)