Package javax.swing.border

Examples of javax.swing.border.CompoundBorder


    JLabel nameLabel,
    Icon icon,
    JLabel descLabel,
    String constraints)
  {
    CompoundBorder border =
      BorderFactory.createCompoundBorder(
        BorderFactory.createLineBorder(Color.BLACK),
        BorderFactory.createEmptyBorder(10, 10, 10, 10));
    JPanel iconPane = createPanel(Color.WHITE, new BorderLayout());
    iconPane.add(new JLabel(icon));
View Full Code Here


    int frameWidth = leftPaneWidth + rightWindowWidth;
 
    /* Make a nice border */
    EmptyBorder emptyBorder = new EmptyBorder(5,5,5,5);
    BevelBorder bevelBorder = new BevelBorder(BevelBorder.LOWERED);
    CompoundBorder compoundBorder = new CompoundBorder(emptyBorder,bevelBorder);
    mainPanel.setBorder(new CompoundBorder(compoundBorder,emptyBorder));
   
    /* Set up the tree */
    m_leftTreeModelAdapter = new DomToTreeModelAdapter(m_document);
    m_middleTreeModelAdapter = new DomToTreeModelAdapter(m_document);
    m_rightTreeModelAdapter = new DomToTreeModelAdapter(m_document);
View Full Code Here

    progressBar.setPreferredSize(new Dimension(400, 50));
    progressBar.setStringPainted(true);
    progressBar.setString("Restarting NanoDoA...");
    LineBorder border1 = new LineBorder(Color.BLACK, 3);
    LineBorder border2 = new LineBorder(Color.LIGHT_GRAY, 3);
    progressBar.setBorder(new CompoundBorder(border2, border1));
    frame.getContentPane().add(progressBar);
    frame.pack();
    frame.setAlwaysOnTop(true);
    frame.setVisible(true);
    SwingUtils.centerWindow(frame);
View Full Code Here

        }       
      }
      setFont(comp, componentFFamilyString, componentFSizeString, componentFWeightString);
      if ((componentBorder!=null)&&(componentBStyleString.trim().toLowerCase().equals("solid"))) {
        if (comp instanceof JButton) {
          comp.setBorder(new CompoundBorder(componentBorder,BorderFactory.createEmptyBorder(5,5,5,5)));
//        } else if (comp instanceof JCheckBox){                 
//        } else if (comp instanceof JComboBox){
//          JComboBox combo = (JComboBox) comp;
        } else {
          comp.setBorder(componentBorder);
View Full Code Here

  public JDialog showExportWizard(Component owner){
    //main = new JOptionPane(createWizardPanel(),
    //JOptionPane.PLAIN_MESSAGE,JOptionPane.CLOSED_OPTION);
    //wizard = main.createDialog(owner,"Export Terminology as OWL Ontology");
    main = createWizardPanel();
    main.setBorder(new CompoundBorder(new EmptyBorder(10,10,10,10),new BevelBorder(BevelBorder.RAISED)));
    wizard = new JDialog(JOptionPane.getFrameForComponent(owner));
    wizard.setTitle("Export Terminology as OWL Ontology");
    wizard.getContentPane().add(main);
    wizard.setModal(false);
    wizard.setResizable(true);
View Full Code Here

    leftPanel.add(export);
   
    for(int i=0;i<leftPanel.getComponentCount();i++){
      if(leftPanel.getComponent(i) instanceof JComponent){
        JComponent c = ((JComponent)leftPanel.getComponent(i));
        c.setBorder(new CompoundBorder(c.getBorder(),new EmptyBorder(5,5,5,5)));
        c.setAlignmentX(Component.CENTER_ALIGNMENT);
      }
    }
   
   
View Full Code Here

  public JDialog showExportWizard(Component owner){
    //main = new JOptionPane(createWizardPanel(),
    //JOptionPane.PLAIN_MESSAGE,JOptionPane.CLOSED_OPTION);
    //wizard = main.createDialog(owner,"Export Terminology as OWL Ontology");
    main = createWizardPanel();
    main.setBorder(new CompoundBorder(new EmptyBorder(10,10,10,10),new BevelBorder(BevelBorder.RAISED)));
    wizard = new JDialog(JOptionPane.getFrameForComponent(owner));
    wizard.setTitle("Export Terminology as OWL Ontology");
    wizard.getContentPane().add(main);
    wizard.setModal(false);
    wizard.setResizable(true);
View Full Code Here

    leftPanel.add(export);
   
    for(int i=0;i<leftPanel.getComponentCount();i++){
      if(leftPanel.getComponent(i) instanceof JComponent){
        JComponent c = ((JComponent)leftPanel.getComponent(i));
        c.setBorder(new CompoundBorder(c.getBorder(),new EmptyBorder(5,5,5,5)));
        c.setAlignmentX(Component.CENTER_ALIGNMENT);
      }
    }
   
   
View Full Code Here

        final TitledBorder titledBorder = BorderFactory.createTitledBorder(title);
        final Font titleFont = UIManager.getFont("TitledBorder.font");
        titledBorder.setTitleFont(titleFont.deriveFont(size));
      final Border btnBorder = c.getBorder();
      if(btnBorder != null){
      final CompoundBorder compoundBorder = BorderFactory.createCompoundBorder(titledBorder, btnBorder);
      c.setBorder(compoundBorder);
      }
      else{
        c.setBorder(titledBorder);
      }
View Full Code Here

  public AssignAttributeDialog(final AttributeController attributeController, final Frame frame) {
    super(frame, TextUtils.getText("attributes_assign_dialog"), false);
    this.attributeController = attributeController;
    mapSelection = Controller.getCurrentController().getSelection();
    final Border actionBorder = new CompoundBorder(new EmptyBorder(5, 10, 0, 10), new CompoundBorder(
        new EtchedBorder(), new EmptyBorder(5, 5, 5, 5)));
    final Border emptyBorder = new EmptyBorder(5, 5, 5, 5);
    final Border btnBorder = new EmptyBorder(2, 2, 2, 2);
    selectedBtn = new JRadioButton();
    MenuBuilder.setLabelAndMnemonic(selectedBtn, TextUtils.getRawText("attributes_for_selected"));
View Full Code Here

TOP

Related Classes of javax.swing.border.CompoundBorder

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.