... Border b1 = BorderFactory.createLineBorder( Color.black ); Border b2 = BorderFactory.createEtchedBorder( EtchedBorder.LOWERED ); Border b3 = new BevelBorder ( BevelBorder.LOWERED, Color.red ); JPanel panel = new JPanel(); panel.setBorder( b2 );You can apply fancy borders to your JPanels (or JComponents) with panel.setBorder( border ) There are all manner of ways to get a Border object to describe a border. Look in the javax.swing.border package for the various classes you can use.
| Package | Version | Released | Licence | Language | Notes | ||
|---|---|---|---|---|---|---|---|
Borders |
1.5 | 2008-04-06 | free | Java |
summary
❘ facts
❘ screenshot
❘ browse source repository
for the current version of Borders.
Displays a variety of Java Swing borders
download
Borders Java source and compiled class files to run on your own machine as an application or Applet.
First install the most recent Java. To install, extract the zip download with WinZip, (or similar unzip utility) into any directory you please, often J:\ — ticking off the “user folder names” option.
To check out the corresponding source from the Subversion repository, use the TortoiseSVN repo-browser to After you have installed the jar, you can run it as an application. Type: java -jar J:\com\mindprod\borders\borders.jar adjusting as necessary to account for where the jar file is. download ASP PAD XML program description for the current version of Borders. Borders is free.
Full source included.
You may even include the source code, modified or unmodified
in commercial programs that you write and distribute. Non-military use only. |
||
![]() |
and suggestions to improve this page to Roedy Green : | ||
| Canadian Mind Products | |||
| mindprod.com IP:[65.110.21.43] | |||
| Your face IP:[38.103.63.58] | |||
| You are visitor number 9,142. | |||
| You can get a fresh copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) | ||
| http://mindprod.com/applet/borders.html | J:\mindprod\applet\borders.html | ||