... 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 |
for the current version of Borders.
Displays a variety of Java Swing borders
638K
zip for Borders Java source, compiled class files, jar and documentation to run on your own machine either as an application or an 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 use 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 free/commercial open source/proprietary programs that you write and distribute. Non-military use only. |
||
|
|
You can get the freshest 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 | |
![]() | ||
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.179.213] | |
| Feedback | You are visitor number 20,582. | |