Package javax.swing.border

Examples of javax.swing.border.EmptyBorder


    private void setUpControlComponent() {
        JLabel timeLabel = new JLabel("Media Time:", JLabel.RIGHT);
        JPanel mainPanel = new JPanel();
        int GAP = 10;

        Border emptyBorder  = new EmptyBorder(GAP,GAP,GAP,GAP);

        Border etchedBorder = new CompoundBorder(
            new EtchedBorder(), emptyBorder);

        Border titledBorder = new TitledBorder(
View Full Code Here


  setAttributes();
    }

    private void setAttributes() {
  setOpaque(false);
  setBorder(new EmptyBorder(0,0,0,0));
    }
View Full Code Here

      this.setSize(300, 200);
      GUIUtils.centerWithinParent(this);
   }

   private JPanel getRemoteLocationPanel() {
      EmptyBorder border = new EmptyBorder(new Insets(5, 5, 5, 5));
      Dimension mediumField = new Dimension(200, 20);
      Dimension portField = new Dimension(50, 20);

      JPanel locationPanel = new JPanel();
      locationPanel.setBorder(new EmptyBorder(0, 0, 0, 10));
      locationPanel.setLayout(new GridBagLayout());

      int x = 0;
      int y = -1;
View Full Code Here

     
      return locationPanel;
   }
  
   private JPanel getLocalUpdateSitePanel() {
      EmptyBorder border = new EmptyBorder(new Insets(5, 5, 5, 5));
      Dimension mediumField = new Dimension(200, 20);

      JPanel locationPanel = new JPanel();
      locationPanel.setBorder(new EmptyBorder(0, 0, 0, 10));
      locationPanel.setLayout(new GridBagLayout());

      int x = 0;
      int y = -1;
View Full Code Here

    panel.add(procedureSeparatorTextField, c);
  }

  private Border getTitledBorder(String title)
  {
    CompoundBorder border = new CompoundBorder(new EmptyBorder(10, 10, 10, 10), new TitledBorder(title));
    return border;
  }
View Full Code Here

    public AboutDialog( JFrame parent )
    {
        super( parent, DemoApp.getRes().getString("About Dialog"), true );
       
        JPanel main = new JPanel();
        main.setBorder( new EmptyBorder( 10, 20, 10, 20 ) );
       
        this.setResizable( false );
        Box b = Box.createVerticalBox();
        b.add( Box.createGlue() );
        b.add( new JLabel( DemoApp.getRes().getString("Demo Application for the Java Service Wrapper" ) ) );
View Full Code Here

        JPanel buttonPanel = new JPanel();
        JSeparator separator = new JSeparator();
        Box buttonBox = new Box(BoxLayout.X_AXIS);

        cardPanel = new JPanel();
        cardPanel.setBorder(new EmptyBorder(new Insets(5, 10, 5, 10)));      

        cardLayout = new CardLayout();
        cardPanel.setLayout(cardLayout);
       
        backButton = new JButton();
        nextButton = new JButton();
        cancelButton = new JButton();
       
        backButton.setActionCommand(BACK_BUTTON_ACTION_COMMAND);
        nextButton.setActionCommand(NEXT_BUTTON_ACTION_COMMAND);
        cancelButton.setActionCommand(CANCEL_BUTTON_ACTION_COMMAND);

        backButton.addActionListener(wizardController);
        nextButton.addActionListener(wizardController);
        cancelButton.addActionListener(wizardController);
       
        //  Create the buttons with a separator above them, then place them
        //  on the east side of the panel with a small amount of space between
        //  the back and the next button, and a larger amount of space between
        //  the next button and the cancel button.
       
        buttonPanel.setLayout(new BorderLayout());
        buttonPanel.add(separator, BorderLayout.NORTH);

        buttonBox.setBorder(new EmptyBorder(new Insets(5, 10, 5, 10)));      
        buttonBox.add(backButton);
        buttonBox.add(Box.createHorizontalStrut(10));
        buttonBox.add(nextButton);
        buttonBox.add(Box.createHorizontalStrut(30));
        buttonBox.add(cancelButton);
View Full Code Here

      TrackSlider slider = new TrackSlider(track);
      track.setTrackSlider(slider);
      slider.addChangeListener(this);
  }
  setLayout(new BorderLayout());
  setBorder(new EmptyBorder(22, 0, 5, 0));
  add(trackPane = new TrackPane(trackList), BorderLayout.CENTER);
  trackModel.addTrackModelListener(this);
    }
View Full Code Here

   
    public TrackView(TrackPane trackPane, TrackList trackList) {
  this.trackList = trackList;
  this.trackPane = trackPane;
  JPanel panel = new JPanel();
  panel.setBorder(new EmptyBorder(0, 0, 0, 0));
  panel.setOpaque(false);
  panel.setLayout(gl =
    new GridLayout(trackList.getNumberOfTracks() + 1, 1));
  gl.setVgap(1);
View Full Code Here

         
    // When changing the backgroud color, it helps to set the inner component's border to zero.  Otherwise,
    // the border can obscure the text and make it hard to see.  This is especially seen when using the
    // kunstoff l&f.
    textField.setBackground(Color.yellow);
    textField.setBorder(new EmptyBorder(0,0,0,0));

    ed = new CellEditorUsingRenderer(textField, dataTypeObject);
    ed.setClickCountToStart(1);
    return ed;
  }
View Full Code Here

TOP

Related Classes of javax.swing.border.EmptyBorder

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.