Examples of BevelBorder


Examples of javax.swing.border.BevelBorder

    JPanel statusBar() {
        JPanel statusBar = new JPanel();
        // statusBar.setBackground(Color.WHITE);

        statusBar.setBorder(new BevelBorder(BevelBorder.LOWERED));
        statusBar.setLayout(new GridBagLayout());
        GridBagConstraints constraints = new GridBagConstraints();
        constraints.anchor = GridBagConstraints.WEST;
        constraints.fill = GridBagConstraints.BOTH;
        constraints.gridy = 0;
View Full Code Here

Examples of javax.swing.border.BevelBorder

 
  public String getJavaCode(Object value, ImportRewrite imports) {
    if (value == null)
      return "null";
    String strBf = imports.addImport("javax.swing.BorderFactory");
    BevelBorder bevelBorder = (BevelBorder) value;
    int type = bevelBorder.getBevelType();
    Color highlightInnerColor = bevelBorder.getHighlightInnerColor();
    Color highlightOuterColor = bevelBorder.getHighlightOuterColor();
    Color shadowInnerColor = bevelBorder.getShadowInnerColor();
    Color shadowOuterColor = bevelBorder.getShadowOuterColor();
    StringBuilder builder = new StringBuilder();
    builder.append(strBf + ".createBevelBorder(");
    builder.append(encodeValue(new BevelBorderTypeItems(), type, imports));
    builder.append(", ");
    builder.append(encodeValue(highlightOuterColor, imports));
View Full Code Here

Examples of javax.swing.border.BevelBorder

    private final Map<JInternalFrame, FrameWrapper> wrappers;

    public WindowBar() {
        FlowLayout layout = new FlowLayout(FlowLayout.LEFT, 1, 1);
        setLayout(layout);
        setBorder(new BevelBorder(BevelBorder.LOWERED));
        wrappers = new HashMap<JInternalFrame, FrameWrapper>();
    }
View Full Code Here

Examples of javax.swing.border.BevelBorder

        this.desktop = desk;
        BorderLayout layout = new BorderLayout();
        layout.setHgap(5);
        layout.setVgap(0);
        setLayout(layout);
        setBorder(new BevelBorder(BevelBorder.RAISED));
        startButton = new JButton("JNode", new ImageIcon(Desktop.loadImage("jnode_icon.png")));
        startButton.setToolTipText("JNode Menu");
        startButton.setBorder(new EmptyBorder(1, 3, 1, 3));

        add(startButton, BorderLayout.WEST);
View Full Code Here

Examples of javax.swing.border.BevelBorder

        this.wrappers = new HashMap<JInternalFrame, FrameWrapper>();
        list.setModel(model);
        list.addListSelectionListener(new SelectionListener());

        setLayout(new GridLayout(1, 1));
        list.setBorder(new BevelBorder(BevelBorder.LOWERED));
        add(list);
    }
View Full Code Here

Examples of javax.swing.border.BevelBorder

    public void init(JPanel mainPanel, GridBagConstraints labelConstraints, GridBagConstraints editConstraints)
    {
        addToPanel(mainPanel, labelConstraints, 0, 3, new JLabel("Column K/V(eg: Name:Value): ", JLabel.RIGHT));
        addToPanel(mainPanel, editConstraints, 1, 3, NAME_AND_VALUE = new JTextArea());
        NAME_AND_VALUE.setRows(10);
        NAME_AND_VALUE.setBorder(new BevelBorder(BevelBorder.LOWERED));
        addToPanel(mainPanel, labelConstraints, 0, 4, new JLabel("Column Serializer: ", JLabel.RIGHT));
        addToPanel(mainPanel, editConstraints, 1, 4, CSERIALIZER = new JComboBox(AbstractSampler.getSerializerNames().toArray()));
        addToPanel(mainPanel, labelConstraints, 0, 5, new JLabel("Value Serializer: ", JLabel.RIGHT));
        addToPanel(mainPanel, editConstraints, 1, 5, VSERIALIZER = new JComboBox(AbstractSampler.getSerializerNames().toArray()));
        addToPanel(mainPanel, labelConstraints, 0, 6, new JLabel("Counter: ", JLabel.RIGHT));
View Full Code Here

Examples of javax.swing.border.BevelBorder

    gbc.gridheight = gbc.gridwidth = 1;
    gbc.weightx = gbc.weighty = 1.0;
    gbc.gridx = gbc.gridy = 0;
    gbc.insets = new Insets(0, 1, 0, 1);

    this.setBorder(new BevelBorder(BevelBorder.LOWERED));
    this.add(this.label, gbc);

    this.setText(text);
  }
View Full Code Here

Examples of javax.swing.border.BevelBorder

    class ColourChooserPanel extends JPanel {
     
        ColourChooserPanel() {
            this.setSize(new Dimension(64, 64));
            this.setLocation(2, 2);
            this.setBorder(new BevelBorder(BevelBorder.RAISED));
        }
View Full Code Here

Examples of javax.swing.border.BevelBorder

    public StatusBarPanel(final PicEdit application) {
        this.setLayout(new BorderLayout());
        this.setFocusable(false);
       
        JPanel fillerPanel = new JPanel();
        fillerPanel.setBorder(new BevelBorder(BevelBorder.LOWERED));
        this.add(fillerPanel, BorderLayout.CENTER);
       
        // TODO: Zoom factor?
       
        JPanel mainPanel = new JPanel();
View Full Code Here

Examples of javax.swing.border.BevelBorder

   
    @SuppressWarnings("serial")
    abstract class StatusBarSection extends JPanel {
     
        StatusBarSection(int width) {
          this.setBorder(new BevelBorder(BevelBorder.LOWERED));
          this.setPreferredSize(new Dimension(width, 20));
          this.setMaximumSize(new Dimension(width, 20));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.