Border : Java Glossary

This view this page, you should have a recent Java installed, preferably 32-bit JRE (Java Runtime Environment) 1.7.0_02.
Border
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. Sorry, you need Java 1.3 or later to run this Applet.

If, Borders, the above Borders Java Applet does not work…

  1. If Copy/Paste (Ctrl-C/Ctrl-V) do not work, you can turn them back on by modifying your java.policy file. This is not for the novice or faint of heart. instructions Your alternative is to download this program and run it without a browser.
  2. Often problems can be fixed simply by clicking the reload button on your browser.
  3. Make sure you have both JavaScript and Java enabled in your browser.
  4. This Java Applet needs 32-bit (not 64-bit) Java 1.3 or later. For best results use the latest 1.7.0_02. If you have both 32 and 64-bit JVMs installed, in the Java Control Panel, configure your 32-bit java.exe as the user JVM and your 64-bit java.exe as the system JVM. You also need a recent browser.
  5. It works under any operating system that supports Java e.g. W2K/XP/W2003/Vista/W7-32/W7-64/Linux/OSX
  6. You should see the Applet above looking much like this screenshot. If you don’t, the following hints should help you get it working:
  7. Especially if this Applet has worked before, try clearing the browser cache and rebooting.
  8. To ensure your Java is up to date, check with Wassup. First, download it and run it as an application independent of your browser, then run it online as an Applet to add the complication of your browser.
  9. If the above Applet does not work, check the Java console for error messages.
  10. If the above Applet does not work, you might have better luck with the downloadable version available below.
  11. If you are using Mac OS X and would like an improved Look and Feel, download the QuaQua look & feel from randelshofer.ch/quaqua. UnZip the contained quaqua.jar and install it in ~/Library/Java/Extensions or one of the other ext dirs.
  12. If you are using Microsoft Internet Explorer 7, 8 or 9, try another browser. Seriously. Microsoft has taken great pains, over and over, to screw up Java and every other multi-platform standardisation.
  13. If you are using Microsoft Internet Explorer 7, 8 or 9, you must click to allow blocked content permission for Active X to run. This also gives permission to Java to run. Click the Information bar, and then click Allow blocked content. Unfortunately, this also allows dangerous ActiveX code to run. However, you must do this in order to get access to perfectly-safe Java Applets running in a sandbox. This is part of Microsoft’s war on Java. Don’t put up with it! Use a different browser.
  14. If you are using Microsoft Internet Explorer 9, makes sure the Java Plug-In SSV helper add-in is installed and enabled. If it is not, try reinstalling the Java JRE.
  15. If you have Windows 7 64-bit and Internet Explorer 64-bit, in theory you can use 64-bit Java, but I never been able to get it to work.
  16. Try upgrading to a more recent version of your browser, or try a different browser e.g. Firefox, SeaMoney, Safari or Avant.
  17. If you still can’t get the program working click HELP for more detail.
  18. If you can’t get the above Applet working after trying the advice above and from the HELP button below, have bugs to report or ideas to improve the program or its documentation, please send me an email atemail Roedy Green.
Java powered   Get New Java  Get New Browser   Help

Gotchas

Learning More

Oracle’s Javadoc on Border class : available:
Oracle’s Javadoc on BorderFactory class : available:


CMP homejump to top 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/jgloss/border.html J:\mindprod\jgloss\border.html
logofeedback Please email your feedback for publication, letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email If you want your message kept confidential, not considered for posting, please explicitly specify that.
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.179.214]
You are visitor number 20,643.