Package org.openbp.swing.plaf.sky

Examples of org.openbp.swing.plaf.sky.ShadowBorder


    itemTree.rebuildTree();
    itemTree.expand(1);
    itemTree.restoreState(state);

    JScrollPane sp = new JScrollPane(itemTree);
    sp.setBorder(new ShadowBorder());

    getContentPanel().add(sp);
  }
View Full Code Here


    // We use the message box resource for our button texts
    resourceCollection = ResourceCollectionMgr.getDefaultInstance().getResource(SwingUtil.RESOURCE_COMMON, JMsgBox.class);

    // Create scroll areas for the various sections of the dialog
    JScrollPane treeScrollPane = new JScrollPane();
    treeScrollPane.setBorder(new ShadowBorder());

    widgetScrollPane = new JScrollPane();
    widgetScrollPane.setBorder(new ShadowBorder());

    descriptionScrollPane = new JScrollPane();
    descriptionScrollPane.setBorder(new ShadowBorder());

    // Create the control buttons
    okBtn = createButton("buttons.ok.caption");
    okBtn.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        optionDialogCommitted();
        optionDialogClosed();
        close();
      }
    });
    okBtn.setEnabled(false);

    cancelBtn = createButton("buttons.cancel.caption");
    cancelBtn.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        optionDialogCancelled();
        close();
      }
    });

    applyBtn = createButton("buttons.apply.caption");
    applyBtn.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        optionDialogCommitted();
      }
    });
    applyBtn.setEnabled(false);

    JPanel btnPanel = new JPanel();
    btnPanel.setBorder(new ShadowBorder());

    btnPanel.add(okBtn);
    btnPanel.add(applyBtn);
    btnPanel.add(cancelBtn);
View Full Code Here

    itemTree.expand(1);
    itemTree.restoreState(state);

    JPanel valuePanel = getValuePanel();
    JScrollPane sp = new JScrollPane(itemTree);
    sp.setBorder(new ShadowBorder());
    valuePanel.add(sp, BorderLayout.CENTER);
  }
View Full Code Here

    preview.setMinimumSize(PREVIEW_SIZE);
    preview.setMinimumSize(PREVIEW_SIZE);
    preview.setMaximumSize(PREVIEW_SIZE);
    preview.setPreferredSize(PREVIEW_SIZE);
    preview.setSize(PREVIEW_SIZE);
    preview.setBorder(new ShadowBorder());

    // Connect the preview panel to the chooser; it's important to do this
    // before adding the preview to the plugin
    chooser.setPreviewPanel(preview);
View Full Code Here

  private void initialize(boolean showbuttons)
  {
    // Add content pane
    mainPane = new JPanel(new BorderLayout());
    mainPane.setBackground(SkyTheme.COLOR_BACKGROUND_LIGHT);
    mainPane.setBorder(new ShadowBorder());
    getContentPane().add(mainPane, BorderLayout.CENTER);

    ActionListener cancelListener = new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        handleCancel();
      }
    };

    ActionListener okListener = new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        handleOk();
      }
    };

    // Set up button pane
    // TOLOCALIZE
    if (showbuttons)
    {
      cancelBtn = new JButton("Cancel");
      cancelBtn.addActionListener(cancelListener);

      okBtn = new JButton("Ok");
      okBtn.addActionListener(okListener);

      btnPane = new JPanel();
      btnPane.setBackground(SkyTheme.COLOR_BACKGROUND_LIGHT);
      btnPane.setBorder(new ShadowBorder());

      btnPane.add(okBtn);
      btnPane.add(cancelBtn);

      getContentPane().add(btnPane, BorderLayout.SOUTH);
View Full Code Here

    preview = new DefaultPreviewPanel();
    preview.setMinimumSize(PREVIEW_SIZE);
    preview.setMaximumSize(PREVIEW_SIZE);
    preview.setPreferredSize(PREVIEW_SIZE);
    preview.setSize(PREVIEW_SIZE);
    preview.setBorder(new ShadowBorder());
    preview.setAlignmentX(BOTTOM_ALIGNMENT);

    // Connect the preview panel to the chooser; it's important to do this
    // before adding the preview to the plugin
    colorChooser.setPreviewPanel(preview);
View Full Code Here

   */
  public TabbedPluginContainer()
  {
    super(new BorderLayout());

    setBorder(new ShadowBorder());

    plugins = new ArrayList(4);

    initKeySupport();
  }
View Full Code Here

TOP

Related Classes of org.openbp.swing.plaf.sky.ShadowBorder

Copyright © 2018 www.massapicom. 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.