? 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
Graphics2D g2D = (Graphics2D)g;
g2D.setColor(Color.BLACK);
g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);