public static JXPanel getDescription(CardView card, int width, int height) { JXPanel descriptionPanel = new JXPanel(); //descriptionPanel.setAlpha(.8f); descriptionPanel.setBounds(0, 0, width, height); descriptionPanel.setVisible(false); descriptionPanel.setLayout(null); //descriptionPanel.setBorder(BorderFactory.createLineBorder(Color.green)); JButton j = new JButton(""); j.setBounds(0, 0, width, height); j.setBackground(Color.black); j.setLayout(null); JLabel cardText = new JLabel(); cardText.setBounds(5, 5, width - 10, height - 10); cardText.setForeground(Color.white); cardText.setFont(cardNameFont); cardText.setVerticalAlignment(SwingConstants.TOP); j.add(cardText); TextLines textLines = GuiDisplayUtil.getTextLinesfromCardView(card); cardText.setText(getRulefromCardView(card, textLines).toString()); descriptionPanel.add(j); return descriptionPanel; }
private static Container createDefaultContainer() { //TODO: All this default container creation stuff should be in the UI //delegate. Not enough time at the moment for me to do this right. JXPanel p = new JXPanel(); return p; }
private static Container createDefaultContainer() { //TODO: All this default container creation stuff should be in the UI //delegate. Not enough time at the moment for me to do this right. JXPanel p = new JXPanel(); return p; }
/** * Creates the content pane used by this collapsible pane. * * @return the content pane */ protected Container createContentPane() { return new JXPanel(); }
/** * Creates the content pane used by this collapsible pane. * * @return the content pane */ protected Container createContentPane() { return new JXPanel(); }
private static Container createDefaultContainer() { //TODO: All this default container creation stuff should be in the UI //delegate. Not enough time at the moment for me to do this right. JXPanel p = new JXPanel(); p.setOpaque(false); return p; }
public Container getContentContainer() { if (contentPanel == null) { contentPanel = new JXPanel(); ((JXPanel) contentPanel).setBorder(BorderFactory .createEmptyBorder()); this.add(contentPanel, BorderLayout.CENTER); } return contentPanel; }
public Container getContentContainer() { if (contentPanel == null) { contentPanel = new JXPanel(); ((JXPanel) contentPanel).setBorder(BorderFactory .createEmptyBorder()); this.add(contentPanel, BorderLayout.CENTER); } return contentPanel; }
public Container getContentContainer() { if (contentPanel == null) { contentPanel = new JXPanel(); ((JXPanel) contentPanel).setBorder(BorderFactory .createEmptyBorder()); this.add(contentPanel, BorderLayout.CENTER); } return contentPanel; }
protected JXPanel createAndConfigureTopPanel(JXTitledPanel titledPanel) { JXPanel topPanel = new JXPanel(); topPanel.setBackgroundPainter(titledPanel.getTitlePainter()); topPanel.setBorder(BorderFactory.createEmptyBorder()); topPanel.setLayout(new GridBagLayout()); topPanel.setOpaque(false); return topPanel; }
protected JXPanel createAndConfigureTopPanel(JXTitledPanel titledPanel) { JXPanel topPanel = new JXPanel(); topPanel.setBackgroundPainter(titledPanel.getTitlePainter()); topPanel.setBorder(BorderFactory.createEmptyBorder()); topPanel.setLayout(new GridBagLayout()); topPanel.setOpaque(false); return topPanel; }
JTextField name = new JTextField(20); name.setOpaque(false); JTextField pass = new JTextField(20); pass.setOpaque(false); pass.setForeground(Color.WHITE); // being lazy: use SwingX JXPanel panel = new JXPanel(); BufferedImage back = XTestUtils.loadDefaultImage("moon.jpg"); panel.setBackgroundPainter(new ImagePainter(back)); panel.add(name); panel.add(pass);
@Override public void actionPerformed(ActionEvent e) { layer = Utilities.actionsGlobalContext().lookup(Layer.class); assert layer != null; JXPanel panel = new JXPanel(new MigLayout("wrap 2")); panel.add(new JLabel(NbBundle.getMessage(this.getClass(), "mark_all_shapes_as.dialog.choose"))); panel.add(comboBox); DialogDescriptor dd = new DialogDescriptor(panel, NbBundle.getMessage(this.getClass(), "mark_all_shapes_as.dialog.title")); dd.setOptions(new Object[]{getOkButton(), getCancelButton()}); dlg = DialogDisplayer.getDefault().createDialog(dd); dlg.setVisible(true); }
@Override public void actionPerformed(ActionEvent e) { panel = new JXPanel(new MigLayout("wrap 2")); actionModel = new DefaultComboBoxModel(new Object[]{ACTION_OPTION_ONE}); actionComboBox = new JComboBox(actionModel); panel.add(new JLabel(LABEL_CHOICE)); panel.add(actionComboBox); DialogDescriptor dd = new DialogDescriptor(panel, DISPLAY_NAME); dd.setOptions(new Object[]{getOkButton(), getCancelButton()}); dlg = DialogDisplayer.getDefault().createDialog(dd); dlg.setVisible(true); }
@Override public void actionPerformed(ActionEvent e) { JXPanel panel = new JXPanel(new MigLayout("wrap 2")); panel.add(new JLabel(NbBundle.getMessage(AreaFieldModule.class, "action.mark_all_shapes_as.dialog.label.choose_shape"))); panel.add(comboBox); DialogDescriptor dd = new DialogDescriptor(panel, NbBundle.getMessage(AreaFieldModule.class, "action.mark_all_shapes_as.dialog.title")); dd.setOptions(new Object[]{getOkButton(), getCancelButton()}); dlg = DialogDisplayer.getDefault().createDialog(dd); dlg.setVisible(true); }
public JXLoginFrame(JXLoginPane p) { super(UIManagerExt.getString(CLASS_NAME + ".titleString", p.getLocale())); JXPanel cp = new JXPanel(); cp.setOpaque(true); setContentPane(cp); this.panel = p; initWindow(this, panel); }
@Override public void actionPerformed(ActionEvent arg0) { assert sensorDataObject != null; JXPanel panel = new JXPanel(new MigLayout("wrap 2")); comboBox.setSelectedItem(sensorDataObject.getPalette()); panel.add(new JLabel("choose:")); panel.add(comboBox); DialogDescriptor dd = new DialogDescriptor(panel, DISPLAY_NAME); dd.setOptions(new Object[]{getOkButton(), getCancelButton()}); dlg = DialogDisplayer.getDefault().createDialog(dd); dlg.setVisible(true); }
public JXLoginFrame(JXLoginPane p) { super(UIManagerExt.getString(CLASS_NAME + ".titleString", p.getLocale())); JXPanel cp = new JXPanel(); cp.setOpaque(true); setContentPane(cp); this.panel = p; initWindow(this, panel); }
public JXLoginFrame(JXLoginPane p) { super(UIManagerExt.getString(CLASS_NAME + ".titleString", p.getLocale())); JXPanel cp = new JXPanel(); cp.setOpaque(true); setContentPane(cp); this.panel = p; initWindow(this, panel); }
public JXLoginFrame(JXLoginPane p) { super(UIManagerExt.getString(CLASS_NAME + ".titleString", p.getLocale())); JXPanel cp = new JXPanel(); cp.setOpaque(true); setContentPane(cp); this.panel = p; initWindow(this, panel); }