public ListPanel() { super(new VerticalLayout(5)); }
public Dimension minimumLayoutSize(Container parent) { return preferredLayoutSize(parent); }
public MyPanel() { super(new VerticalLayout(gap)); }
protected JPanel getButtonsPanel() { if (buttonsPanel == null) { buttonsPanel = new JPanel(new VerticalLayout()); } return buttonsPanel; }
private void initComponents() { checkMap = new HashMap<E, JCheckBox>(); panel = new JPanel(new VerticalLayout(gap)); actionListener = new MyActionListener(); }
public DeviceHolder(){ mLabelLayout = new JPanel(new VerticalLayout()); mDeviceLabel = new JLabel(); mIdLabel = new JLabel(); mItemRoot.setPreferredSize(new Dimension(-1,36)); mLabelLayout.add(mDeviceLabel); mLabelLayout.add(mIdLabel); mContentLayout.add(mLabelLayout); mActionIconLabel.setCursor(Utils.getHandCursor()); }
public OutputDataStreamsViewer(final ComponentBuilder componentBuilder) { super(); _componentBuilder = componentBuilder; setLayout(new VerticalLayout(4)); }
private JPanel getScrollPanel() { if (scrollPanel == null) { scrollPanel = new JPanel(new VerticalLayout()); scrollPanel.add(getMainProxyPanel()); scrollPanel.add(getSecurityProtocolsPanel()); scrollPanel.add(getProxiesOptionsPanel()); } return scrollPanel; }
public JPanel createSidenav() { JPanel sideBarPane = new JPanel(new VerticalLayout()); sideBarPane.setBackground(ColorConst.SIDENAV_BACKGROUND); sideBarPane.setBorder(BorderFactory.createEmptyBorder()); sideBarPane.add(createMenuBarTopBrand()); createMenuBarButtonGroup("sidenav-dashboard.png", "Dashboard", Screen.DASHBOARD_DAILY, Screen.DASHBOARD_WEEKLY, Screen.DASHBOARD_MONTHLY, Screen.DASHBOARD_YEARLY).forEach(sideBarPane::add); createMenuBarButtonGroup("sidenav-settings.png", "Settings", Screen.SETTINGS_GENERAL, Screen.SETTINGS_LICENSE).forEach(sideBarPane::add); createMenuBarButtonGroup("sidenav-contact.png", "Contact", Screen.CONTACT_FEEDBACK, Screen.CONTACT_SUPPORT).forEach(sideBarPane::add); return sideBarPane; }
@Override public JComponent getPanel(Wizard wizard, Drawable dr) { JPanel p = new JPanel(new FlowLayout()); p.add(new JLabel("Select Filter:")); if (filtersCB == null) { filtersCB = new JComboBox<>(FilterUtils.getAllFiltersSorted()); filtersCB.setName("filtersCB"); } p.add(filtersCB); JPanel main = new JPanel(new VerticalLayout()); main.add(p); if (openSaveDirsPanel == null) { openSaveDirsPanel = new OpenSaveDirsPanel(false); } main.add(openSaveDirsPanel); return main; }
settingsForm.add(label); JPanel controlPanel = new JPanel(new VerticalLayout()); controlPanel.add(component); if (hint != null) {
public ExportPanel(int nrLayers) { setBorder(createEmptyBorder(10, 10, 10, 10)); setLayout(new VerticalLayout(10)); add(new JLabel(" Animation frames are based on the layers of the image. ")); JPanel settings = new JPanel(); settings.setLayout(new FlowLayout(FlowLayout.LEFT, 10, 10)); settings.add(new JLabel("Delay Between Frames (Milliseconds):")); delayTF = new JTextField("200", 4); settings.add(delayTF); add(settings); if (nrLayers > 2) { pingPongCB = new JCheckBox("Ping Pong Animation"); } else { pingPongCB = new JCheckBox("Ping Pong Animation (min 3 layers needed)"); pingPongCB.setEnabled(false); } add(pingPongCB); }
@Override public void installUI(JComponent c) { super.installUI(c); JXTaskPaneContainer taskPane = (JXTaskPaneContainer) c; taskPane.setLayout(new VerticalLayout(14)); taskPane.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); // taskPane.putClientProperty(SubstanceLookAndFeel.PAINT_ACTIVE_PROPERTY // , // Boolean.TRUE); // taskPane.setOpaque(false); }
public ExistingDatastorePanel(final DatastoreCatalog datastoreCatalog, final DatastoreSelectedListener datastoreSelectListener) { _datastoreCatalog = datastoreCatalog; _datastoreSelectListener = datastoreSelectListener; setLayout(new VerticalLayout(4)); setBorder(new EmptyBorder(10, 10, 10, 10)); updateDatastores(); }
public JChoixPanel() { super(new VerticalLayout(5)); map1 = new HashMap<E, JSelectedPanel>(); map2 = new HashMap<JSelectedPanel, E>(); this.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); MyMouseAdapter mouseAdapter = new MyMouseAdapter(); this.addMouseListener(mouseAdapter); this.addMouseMotionListener(mouseAdapter); Toolkit.getDefaultToolkit().addAWTEventListener( new MyAWTEventListener(), AWTEvent.MOUSE_EVENT_MASK); }
public JPanel getGui() { JPanel settingsPanel = new JPanel(); settingsPanel.setLayout(new VerticalLayout(5)); JLabel domainLabel = new JLabel("Domain:"); domainTextField = new JTextField("example.com");
public WaitingComponent() { super(RADIUS); // final JXBusyLabel busyLabel = new JXBusyLabel(); //// setDoubleBuffered(true); // busyLabel.setBusy(true); // busyLabel.setOpaque(false); // busyLabel.setHorizontalAlignment(SwingConstants.CENTER); // busyLabel.setBackground(new Color(0,0,0,0)); label.setFont(getFont().deriveFont(getFont().getSize() * 0.9f)); label.setForeground(Color.WHITE); label.setOpaque(false); setLayout(new VerticalLayout()); // add(busyLabel); add(label); setBackground(BACKGROUND_COLOR); setOpaque(true); setBorder(BORDER); }
public VerticalTabbedPane() { super(); _tabs = new ArrayList<>(); _leftPanel = new DCPanel(); _leftPanel.setLayout(new VerticalLayout(0)); setLayout(new BorderLayout()); add(wrapInCollapsiblePane(wrapInScrollPane(_leftPanel)), BorderLayout.WEST); }
public AbstractMultipleCheckboxesPropertyWidget(final ComponentBuilder componentBuilder, final ConfiguredPropertyDescriptor propertyDescriptor, final Class<E> itemClass) { super(componentBuilder, propertyDescriptor); _itemClass = itemClass; _checkBoxes = new LinkedHashMap<>(); setLayout(new VerticalLayout(2)); _notAvailableCheckBox = new DCCheckBox<>(getNotAvailableText(), false); _notAvailableCheckBox.setOpaque(false); _notAvailableCheckBox.setEnabled(false); _buttonPanel = createButtonPanel(); add(_buttonPanel); }
panel.setLayout(new VerticalLayout(4));