@Override protected void initialize() { this.getRootPane().setBorder(BorderFactory.createCompoundBorder( BorderFactory.createLineBorder(AppThemeColor.TRANSPARENT, 2), BorderFactory.createLineBorder(AppThemeColor.BORDER, 1))); }
@Override protected void initialize() { this.getRootPane().setBorder(BorderFactory.createCompoundBorder( BorderFactory.createLineBorder(AppThemeColor.TRANSPARENT, 2), BorderFactory.createLineBorder(AppThemeColor.BORDER, 1))); }
@Override protected void initialize() { this.getRootPane().setBorder(BorderFactory.createLineBorder(AppThemeColor.BORDER)); }
@Override protected void initialize() { this.getRootPane().setBorder(BorderFactory.createCompoundBorder( BorderFactory.createLineBorder(AppThemeColor.TRANSPARENT, 2), BorderFactory.createLineBorder(AppThemeColor.BORDER, 1))); this.scaleData = this.scaleConfig.getMap(); }
@Override protected void initialize() { this.setMinimumSize(new Dimension(310, 60)); this.getRootPane().setBorder(BorderFactory.createLineBorder(AppThemeColor.BORDER)); }
public void windowDeactivated(WindowEvent e) { getRootPane().setBorder(inactiveBorder); repaint(); } });
public void windowActivated(WindowEvent e) { getRootPane().setBorder(activeBorder); repaint(); }
@Override public void onViewInit() { this.setOpacity(this.applicationConfig.get().getMaxOpacity() / 100f); this.getRootPane().setBorder(BorderFactory.createCompoundBorder( BorderFactory.createLineBorder(AppThemeColor.BORDER, 1), BorderFactory.createLineBorder(AppThemeColor.TRANSPARENT, 2))); } }
@Override public void mouseExited(MouseEvent e) { panel.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); if (!AbstractMovableComponentFrame.this.getBounds().contains(e.getPoint())) { getRootPane().setBorder(BorderFactory.createLineBorder(AppThemeColor.BORDER, 1)); } } });
@Override public void mouseEntered(MouseEvent e) { panel.setCursor(new Cursor(Cursor.MOVE_CURSOR)); getRootPane().setBorder(BorderFactory.createLineBorder(AppThemeColor.TEXT_MESSAGE, 1)); }
static void installBorder(JRootPane rootPane) { int style = rootPane.getWindowDecorationStyle(); if (style != JRootPane.NONE) { rootPane.setBorder((Border) UIManager.getDefaults().get( BORDER_KEYS[style])); } }
public AdrDialog(Component relative, T payload) { this.payload = payload; this.setModal(true); this.setAlwaysOnTop(true); this.setLayout(new BorderLayout()); this.setDefaultCloseOperation(DISPOSE_ON_CLOSE); this.setBackground(AppThemeColor.FRAME_RGB); this.getRootPane().setBorder(BorderFactory.createEmptyBorder(6, 6, 6, 6)); this.createView(); this.pack(); this.setLocationRelativeTo(relative); }
public BaseDialog(DialogCallback<T> callback, Component relative, P payload) { this.payload = payload; this.callback = callback; this.setModal(true); this.setAlwaysOnTop(true); this.setLayout(new BorderLayout()); this.setDefaultCloseOperation(DISPOSE_ON_CLOSE); this.setBackground(AppThemeColor.FRAME_RGB); this.getRootPane().setBorder(BorderFactory.createEmptyBorder(6, 6, 6, 6)); this.createView(); this.pack(); this.setLocationRelativeTo(relative); }
@Override public void disableSettings() { super.disableSettings(); this.trackerGroupPanel.disableSettings(); this.trackerGroupPanel.removeMouseListener(this.mouseListener); this.trackerGroupPanel.removeMouseListener(this.mouseOverListener); this.trackerGroupPanel.removeMouseMotionListener(this.motionListener); this.getRootPane().setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); this.pack(); this.repaint(); }
@Override public void disableSettings() { super.disableSettings(); this.component.disableSettings(); this.component.removeMouseListener(this.mouseListener); this.component.removeMouseMotionListener(this.motionListener); this.component.removeMouseListener(this.mouseOverListener); this.getRootPane().setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); this.pack(); this.repaint(); }
private void setFrameUp() { getRootPane().setBorder(Borders.createEmptyBorder()); setTitle(ConstMessagesEN.Labels.REPORTS); setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); setLocationRelativeTo(null); setResizable(false); LookAndFeelUtils.setWindowsLookAndFeel(); setLayout(new GridLayout(3, 1, 20, 20)); }
private void setFrameUp() { getRootPane().setBorder(Borders.createEmptyBorder()); setTitle(ConstMessagesEN.Labels.FORMS); setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); setLocationRelativeTo(null); setResizable(false); LookAndFeelUtils.setWindowsLookAndFeel(); setLayout(new GridLayout(6, 2, 20, 20)); }
@Override public void onViewInit() { this.setBackground(AppThemeColor.TRANSPARENT); this.getRootPane().setBorder(null); this.add(itemsGridPanel, BorderLayout.CENTER); this.setPreferredSize(this.getMaximumSize()); this.pack(); }
private void setFrameUp() { getRootPane().setBorder(Borders.createEmptyBorder()); setTitle(ConstMessagesEN.Labels.MAIN_MENU); setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); setLocationRelativeTo(null); setResizable(false); LookAndFeelUtils.setWindowsLookAndFeel(); setLayout(new GridLayout(1, 2, 20, 20)); }
@Override public void disableSettings() { super.disableSettings(); this.component.disableSettings(); this.removeMouseListener(this.mouseListener); this.removeMouseListener(this.mouseOverListener); this.removeMouseMotionListener(this.motionListener); this.component.removeMouseListener(this.mouseListener); this.component.removeMouseListener(this.mouseOverListener); this.component.removeMouseMotionListener(this.motionListener); this.getRootPane().setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); this.pack(); this.repaint(); }