};
String navigationPanelIconPath = preferences.getLocalizedString(HomeComponent3D.class, "navigationPanel.icon");
final ImageIcon nagivationPanelIcon = navigationPanelIconPath.length() > 0
? new ImageIcon(HomeComponent3D.class.getResource(navigationPanelIconPath))
: null;
navigationPanel.setBorder(new Border() {
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
if (nagivationPanelIcon != null) {
nagivationPanelIcon.paintIcon(c, g, x, y);
} else {
// Draw a surrounding oval if no navigation panel icon is defined