This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes setting border to Panel, how-to? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "setting border to Panel, how-to?" Watch "setting border to Panel, how-to?" New topic
Author

setting border to Panel, how-to?

Akshay Kumar
Ranch Hand

Joined: Feb 24, 2004
Posts: 37
hi,

i need to set border to Panel(AWT component) but i know that AWT Panel doesn't support this unlike JPanel.

anyone with the solution can extend their arms.

thanks.
Darin Niard
Ranch Hand

Joined: Jun 08, 2004
Posts: 118
Is there a particular reason that you can't use a JPanel?
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Here's a possibility. Let your imagination play and see what you come up with...
Akshay Kumar
Ranch Hand

Joined: Feb 24, 2004
Posts: 37
hi darin,

yeah, bcoz v r using applets to display it in browsers and restricted to use swings for that, here. thanks.

hi craig,

thanks a lot for such a good code and also the way v can use java by just in anyway. thanks, again.

bye bye
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setting border to Panel, how-to?
 
Similar Threads
how to set this a borderq
Borders
Suppressing borders on a TextArea
Swing vs AWT
AWT Panels with Borders