public void run() { // discard all the menu items that might have been added by the master. frame.resetMenuBar(); } });
public void run() { // discard all the menu items that might have been added by the master. frame.resetMenuBar(); } });
public void run() { // discard all the menu items that might have been added by the master. frame.resetMenuBar(); } });
public void run() { // discard all the menu items that might have been added by the master. frame.resetMenuBar(); } });
public MainDialog() throws HeadlessException { super("Hudson slave agent"); ImageIcon background = new ImageIcon(getClass().getResource("title.png")); JPanel foregroundPanel = new JPanel(new BorderLayout(10, 10)); foregroundPanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); foregroundPanel.setOpaque(false); statusLabel = new JLabel("",JLabel.TRAILING); foregroundPanel.add(statusLabel, BorderLayout.CENTER); setContentPane(GUI.wrapInBackgroundImage(foregroundPanel, background,JLabel.BOTTOM,JLabel.LEADING)); resetMenuBar(); pack(); setSize(new Dimension(250,150)); getContentPane().setBackground(Color.WHITE); setLocationByPlatform(true); setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); }
@SuppressFBWarnings(value = "UI_INHERITANCE_UNSAFE_GETRESOURCE", justification = "We allow overriding this resource. Just in case") public MainDialog() throws HeadlessException { super("Jenkins agent"); ImageIcon background = new ImageIcon(getClass().getResource("title.png")); JPanel foregroundPanel = new JPanel(new BorderLayout(10, 10)); foregroundPanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); foregroundPanel.setOpaque(false); statusLabel = new JLabel("",JLabel.TRAILING); foregroundPanel.add(statusLabel, BorderLayout.CENTER); setContentPane(GUI.wrapInBackgroundImage(foregroundPanel, background,JLabel.BOTTOM,JLabel.LEADING)); resetMenuBar(); pack(); setSize(new Dimension(250,150)); getContentPane().setBackground(Color.WHITE); setLocationByPlatform(true); setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); }
public MainDialog() throws HeadlessException { super("Hudson slave agent"); ImageIcon background = new ImageIcon(getClass().getResource("Hudson-bust.png")); JPanel foregroundPanel = new JPanel(new BorderLayout(10, 10)); foregroundPanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); foregroundPanel.setOpaque(false); statusLabel = new JLabel("",JLabel.TRAILING); foregroundPanel.add(statusLabel, BorderLayout.CENTER); setContentPane(GUI.wrapInBackgroundImage(foregroundPanel, background,JLabel.BOTTOM,JLabel.LEADING)); resetMenuBar(); pack(); setSize(new Dimension(250,150)); getContentPane().setBackground(Color.WHITE); setLocationByPlatform(true); setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); }
public MainDialog() throws HeadlessException { super("Hudson slave agent"); ImageIcon background = new ImageIcon(getClass().getResource("Hudson-bust.png")); JPanel foregroundPanel = new JPanel(new BorderLayout(10, 10)); foregroundPanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); foregroundPanel.setOpaque(false); statusLabel = new JLabel("",JLabel.TRAILING); foregroundPanel.add(statusLabel, BorderLayout.CENTER); setContentPane(GUI.wrapInBackgroundImage(foregroundPanel, background,JLabel.BOTTOM,JLabel.LEADING)); resetMenuBar(); pack(); setSize(new Dimension(250,150)); getContentPane().setBackground(Color.WHITE); setLocationByPlatform(true); setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); }