aspose file tools
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 Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "jlabel.setbounds() in jpanel " Watch "jlabel.setbounds() in jpanel " New topic

jlabel.setbounds() in jpanel

yogessh chavaan

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

Joined: May 03, 2008
Posts: 4808

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.
I agree. Here's the link:
subject: jlabel.setbounds() in jpanel