• Post Reply Bookmark Topic Watch Topic
  • New Topic

Border

 
Jeremy Hooie
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to set the border on an Applet (i.e. Panel or Container)? When my Appplet appears in the Browser the Border seems a little ragged and I want to make a nice beveled edge.
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeremy,
Only if you are using Swing. Swing has borders built in to all its components.
For AWT, you can override the paint method and draw your own though ...
Regards,
Manfred.
 
John Zukowski
Author
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AWT applets use Insets to work with borders. Sure, it is easier with Swing, but you can still do it in AWT.
------------------
John Zukowski Author of "Definitive Guide to Swing for Java 2" and "Java Collections"
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!