public void updateTitle() { String title = workspace.getTitle(); if (title != null) { setTitle(title); } }
public void updateTitle() { String title = workspace.getTitle(); if (title != null) { setTitle(title); } }
public void updateTitle() { String title = workspace.getTitle(); if (title != null) { setTitle(title); } }
private void createUI() { JPanel contentPane = new JPanel(new BorderLayout(0, 0)); setContentPane(contentPane); // Menu bar createMenuBar(); // Add the workspace to the frame contentPane.add(workspace); workspace.initialiseExtraMenuItems(getJMenuBar()); String title = workspace.getTitle(); if (title != null) { setTitle(title); } setIconImage(((ImageIcon) Icons.getIcon("logo32.gif")).getImage()); Optional<JComponent> statusArea = workspace.getStatusArea(); statusArea.ifPresent(sa -> contentPane.add(sa, BorderLayout.SOUTH)); }
private void createUI() { JPanel contentPane = new JPanel(new BorderLayout(7, 7)); setContentPane(contentPane); // Menu bar createMenuBar(); // Add the workspace to the frame contentPane.add(workspace); workspace.initialiseExtraMenuItems(getJMenuBar()); String title = workspace.getTitle(); if (title != null) { setTitle(title); } setIconImage(((ImageIcon) Icons.getIcon("logo32.gif")).getImage()); JComponent statusArea = workspace.getStatusArea(); if (statusArea != null) { contentPane.add(statusArea, BorderLayout.SOUTH); } }
private void createUI() { JPanel contentPane = new JPanel(new BorderLayout(7, 7)); setContentPane(contentPane); // Menu bar createMenuBar(); // Add the workspace to the frame contentPane.add(workspace); workspace.initialiseExtraMenuItems(getJMenuBar()); String title = workspace.getTitle(); if (title != null) { setTitle(title); } setIconImage(((ImageIcon) Icons.getIcon("logo32.gif")).getImage()); JComponent statusArea = workspace.getStatusArea(); if (statusArea != null) { contentPane.add(statusArea, BorderLayout.SOUTH); } }