Package javax.swing.border

Examples of javax.swing.border.TitledBorder


        this.dispose();
    }

    private void jbInit() throws Exception {
        box5 = Box.createVerticalBox();
        titledBorder1 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)),"Project Files Added/Removed");
        titledBorder2 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)),"Build Configurations Affected");
        box2 = Box.createVerticalBox();
        this.getContentPane().setLayout(borderLayout1);
        cancel_button.setText("Cancel");
        cancel_button.addActionListener(new java.awt.event.ActionListener() {
View Full Code Here


    private void cancel_button_actionPerformed(ActionEvent e) {
        close();
    }

    private void jbInit() throws Exception {
        titledBorder1 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(156, 156, 158)),"Sorting");
        titledBorder2 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(148, 145, 140)),"Associations (navigeable relations between sturcture nodes)");
        titledBorder3 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(156, 156, 158)),"Member Filtering (nodes to exclude from view)");
        BorderFactory.createLineBorder(Color.black,2);
        titledBorder4 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(148, 145, 140)),"Compile Options");
        titledBorder5 = new TitledBorder("");
        BorderFactory.createLineBorder(Color.black,2);
        titledBorder6 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(148, 145, 140)),"Run Options");
        BorderFactory.createEtchedBorder(Color.white,new Color(156, 156, 158));
        titledBorder7 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(156, 156, 158)),"Granularity (all nodes below selected level will be hidden)");
        border4 = BorderFactory.createEtchedBorder(Color.white,new Color(156, 156, 158));
        titledBorder8 = new TitledBorder(border4,"Member Visibility");
        border5 = BorderFactory.createEtchedBorder(Color.white,new Color(156, 156, 158));
        titledBorder9 = new TitledBorder(border5,"Member Modifiers");
        BorderFactory.createEmptyBorder();
        titledBorder10 = new TitledBorder(BorderFactory.createEtchedBorder(Color.white,new Color(148, 145, 140)),"Structure View Properties");
        border7 = BorderFactory.createEtchedBorder(Color.white,new Color(156, 156, 158));
        titledBorder11 = new TitledBorder(border7,"Member Kinds");
        border8 = BorderFactory.createEtchedBorder(Color.white,new Color(148, 145, 140));
        titledBorder12 = new TitledBorder(border8,"Build Paths");
        border9 = BorderFactory.createEmptyBorder(6,6,6,6);
        jPanel1.setLayout(borderLayout1);
        jLabel1.setFont(new java.awt.Font("Dialog", 1, 14));
        jLabel1.setText("AspectJ Development Environment (AJDE)");
        version_label.setFont(new java.awt.Font("Dialog", 1, 12));
View Full Code Here

    Box box = new Box(BoxLayout.Y_AXIS);

    Border border
      = BorderFactory.createCompoundBorder(new EmptyBorder(5, 5, 5, 5),
                                           new TitledBorder("Server: " + id));

    box.setBorder(border);

    ButtonGroup group = new ButtonGroup();
    _start = new JRadioButton("Start");
View Full Code Here

                }
            }
        });

        GridPanel mainPanel = new GridPanel();
        TitledBorder border = new TitledBorder(new EtchedBorder(), "Select a workflow to load");
        mainPanel.getSwingComponent().setBorder(border);
        mainPanel.add(this.list);
        mainPanel.layout(1, 1, 0, 0);

        JPanel buttonPanel = new JPanel();
View Full Code Here

  public void testBorderConverter() {
    TestCase.assertNotNull("JPanel pnl auto bound through Swixml", pnl);
    Border border = pnl.getBorder();
    TestCase.assertNotNull("panel elem. has a border attribute def. in the XML Descriptor", border);
    TestCase.assertTrue("XML Descriptor declared a TitledBorder for this Panel", border.getClass().isAssignableFrom(TitledBorder.class));
    TitledBorder tb = (TitledBorder) border;
    TestCase.assertEquals("Title like set in XML", "myTitle", tb.getTitle());
    TestCase.assertEquals("Title Font like set in XML", Font.decode("VERDANA-BOLD-18"), tb.getTitleFont());
    TestCase.assertEquals("Title Justification like set in XML", TitledBorder.CENTER, tb.getTitleJustification());
    TestCase.assertEquals("Title Position like set in XML", TitledBorder.BELOW_BOTTOM, tb.getTitlePosition());
  }
View Full Code Here

        setPreferredSize( new Dimension(270, 200) );

        EmptyBorder emptyBorder = new EmptyBorder(5, 5, 5, 5);
        LineBorder lineBorder   = new LineBorder(Color.gray, 1);

        TitledBorder titledBorder = BorderFactory.createTitledBorder(lineBorder,
                                                                     "Statistics",
                                                                     TitledBorder.LEFT,
                                                                     TitledBorder.TOP,
                                                                     DEFAULT_FONT,
                                                                     Color.black);
View Full Code Here

   
    JPanel visTypesPanel = new JPanel();
    visTypesPanel.setLayout(new BoxLayout(visTypesPanel, BoxLayout.Y_AXIS));
    visTypesPanel.setAlignmentX(0.0f);
    visTypesPanel.setBackground(metaControlsColor);
    TitledBorder t1 = BorderFactory.createTitledBorder(
      BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),
      "visualization type");
    t1.setTitleJustification(TitledBorder.CENTER);
    visTypesPanel.setBorder(t1);
   
    String[] rendererStrings = {"segment order", "scatterplot", "bar graph", "line graph"};

    rendererSelector = new JComboBox(rendererStrings);
    rendererSelector.setMaximumSize(rendererSelector.getPreferredSize());
    rendererSelector.setBackground(metaControlsColor);
    rendererSelector.setActionCommand("rendererSelector");
    rendererSelector.addActionListener(this);
   
    visTypesPanel.add(rendererSelector);
   
    metaControlPanel.add(visTypesPanel);

    /*
     * load files
     */
    
    JPanel fileIOPanel = new JPanel();
    fileIOPanel.setLayout(new BoxLayout(fileIOPanel, BoxLayout.Y_AXIS));
    fileIOPanel.setAlignmentX(0.0f);
    fileIOPanel.setBackground(metaControlsColor);
    TitledBorder t2 = BorderFactory.createTitledBorder(
      BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),
      "file I/O");
    t2.setTitleJustification(TitledBorder.CENTER);
    fileIOPanel.setBorder(t2);

    featInputFileLabel = new JLabel("no file loaded");
    featInputFileLabel.setBackground(metaControlsColor);
    fileIOPanel.add(featInputFileLabel);

    eDLInputFileLabel = new JLabel("no file loaded");
    eDLInputFileLabel.setBackground(metaControlsColor);
    fileIOPanel.add(eDLInputFileLabel);
   
    JButton selectFeatsButton = new JButton("load files");
    selectFeatsButton.setBackground(metaControlsColor);
    selectFeatsButton.setActionCommand("selectFiles");
    selectFeatsButton.addActionListener(this);
    fileIOPanel.add(selectFeatsButton);

    JLabel featOutputFileLabel =
      new JLabel("save selected chunks");
    featOutputFileLabel.setBackground(metaControlsColor);
    fileIOPanel.add(featOutputFileLabel);
   
    JButton selectFeatOutputButton = new JButton("save .feat");
    selectFeatOutputButton.setBackground(metaControlsColor);
    selectFeatOutputButton.setActionCommand("saveFeatFile");
    selectFeatOutputButton.addActionListener(this);
    fileIOPanel.add(selectFeatOutputButton);
   
    JButton selectEDLOutputButton = new JButton("save .edl");
    selectEDLOutputButton.setBackground(metaControlsColor);
    selectEDLOutputButton.setActionCommand("saveEDLFile");
    selectEDLOutputButton.addActionListener(this);
    fileIOPanel.add(selectEDLOutputButton);
   
    metaControlPanel.add(fileIOPanel);
   
    /*
     * audio playback
     */
        JPanel audioPanel = new JPanel();
    audioPanel.setLayout(new BoxLayout(audioPanel, BoxLayout.Y_AXIS));
    audioPanel.setAlignmentX(0.0f);
    audioPanel.setBackground(metaControlsColor);
    TitledBorder t3 = BorderFactory.createTitledBorder(
      BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),
      "synthesizer");
    t3.setTitleJustification(TitledBorder.CENTER);
        audioPanel.setBorder(t3);

        playFeatChunksButton = new JRadioButton("play feat chunks");
        playFeatChunksButton.setBackground(metaControlsColor);
        playFeatChunksButton.setSelected(true);
        playFeatChunksButton.setEnabled(false);
        audioPanel.add(playFeatChunksButton);
  playEDLChunksButton = new JRadioButton("play edl chunks");
        playEDLChunksButton.setBackground(metaControlsColor);
        playEDLChunksButton.setEnabled(false);
        audioPanel.add(playEDLChunksButton);
  playAddBlipsButton = new JCheckBox("add blips");
        playAddBlipsButton.setBackground(metaControlsColor);
        playAddBlipsButton.setEnabled(true);
        audioPanel.add(playAddBlipsButton);
 
        ButtonGroup playTypeBG = new ButtonGroup();
        playTypeBG.add(playFeatChunksButton);
        playTypeBG.add(playEDLChunksButton);

        JButton playButton = new JButton("play selected");
        playButton.setBackground(metaControlsColor);
        playButton.setActionCommand("playChunks");
        playButton.addActionListener(this);
        audioPanel.add(playButton);
        JButton stopButton = new JButton("stop");
        stopButton.setBackground(metaControlsColor);
        stopButton.setActionCommand("stopPlayback");
        stopButton.addActionListener(this);
        audioPanel.add(stopButton);

    metaControlPanel.add(audioPanel);

    updateFileNameLabels();

    /*
     * standard info display
     */
   
    JPanel infoDisplayPanel = new JPanel();
    infoDisplayPanel.setLayout(new BoxLayout(infoDisplayPanel, BoxLayout.Y_AXIS));
    infoDisplayPanel.setBackground(metaControlsColor);
    infoDisplayPanel.setBounds(visTypesPanel.getBounds());
   
    TitledBorder t4 = BorderFactory.createTitledBorder(
      BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),
      "chunk data");
    t4.setTitleJustification(TitledBorder.CENTER);
    infoDisplayPanel.setBorder(t4);
   
    JLabel iL1 = new JLabel("file name:");
    infoDisplayPanel.add(iL1);

View Full Code Here

    add(helpButton);
   
    JPanel prefsPanel = new JPanel();
    prefsPanel.setLayout(new BoxLayout(prefsPanel, BoxLayout.Y_AXIS));
    prefsPanel.setBackground(c);
    TitledBorder title = BorderFactory.createTitledBorder(
      BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),
      "Preferences");
    title.setTitleJustification(TitledBorder.CENTER);
    prefsPanel.setBorder(title);

    JPanel panel = new JPanel();
    panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
        panel.setBackground(c);

        JPanel dBNPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
    dBNPanel.setBackground(c);
   
    JLabel dataBaseNameLabel = new JLabel("file i/o base name: ");
    dataBaseNameLabel.setToolTipText("Name used to construct filenames for "
                                         + "intermediate processing steps.");
    dBNPanel.add(dataBaseNameLabel);
    dataBaseNameField = new JTextField("mann");
    dataBaseNameField.setColumns(10);
    dataBaseNameField.addActionListener(this);
    dataBaseNameField.setActionCommand("dataBaseName");
    dBNPanel.add(dataBaseNameField);
    JButton dataBaseNameUpdateButton = new JButton("update");
    dataBaseNameUpdateButton.setBackground(c);
    dataBaseNameUpdateButton.addActionListener(this);
    dataBaseNameUpdateButton.setActionCommand("dataBaseName");
    dBNPanel.add(dataBaseNameUpdateButton);
        dBNPanel.setAlignmentX(Component.RIGHT_ALIGNMENT);
    panel.add(dBNPanel);
   
        JPanel aPPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
        //aPPanel.setLayout(new BoxLayout(aPPanel, BoxLayout.X_AXIS));
        aPPanel.setBackground(c);
   
    JLabel audioPlayerLabel = new JLabel("audio player: ");
    aPPanel.add(audioPlayerLabel);
        if(audioPlayerName != null)
            audioPlayerField = new JTextField(audioPlayerName);
        else
            audioPlayerField = new JTextField("select audio player");
    audioPlayerField.setColumns(10);
    audioPlayerField.addActionListener(this);
        audioPlayerField.setActionCommand("selectAudioPlayer");
    aPPanel.add(audioPlayerField);
    JButton audioPlayerBrowseButton = new JButton("browse");
    audioPlayerBrowseButton.setBackground(c);
    audioPlayerBrowseButton.addActionListener(this);
        audioPlayerBrowseButton.setActionCommand("browseAudioPlayer");
        dataBaseNameUpdateButton.setPreferredSize(
            audioPlayerBrowseButton.getPreferredSize());
      aPPanel.add(audioPlayerBrowseButton);   
        aPPanel.setAlignmentX(Component.RIGHT_ALIGNMENT);
        panel.add(aPPanel);
    prefsPanel.add(panel);

        panel = new JPanel();
        panel.setBackground(c);
        saveFilesPrefBox = new JCheckBox("save .seg .edl .feat files");
    saveFilesPrefBox.setBackground(c);
    saveFilesPrefBox.setSelected(true);
    panel.add(saveFilesPrefBox);
        prefsPanel.add(panel);
        prefsPanel.setAlignmentX(Component.CENTER_ALIGNMENT);

    add(prefsPanel);

    JPanel aboutPanel = new JPanel();
    aboutPanel.setBackground(c);
    TitledBorder title2 = BorderFactory.createTitledBorder(
      BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),
      "About MEAPsoft");
    title2.setTitleJustification(TitledBorder.CENTER);
    aboutPanel.setBorder(title2);
   
    JTextArea aboutTextArea = new JTextArea();
    aboutTextArea.setBackground(c);
   
View Full Code Here

   
    add(segmenterEnablePanel);
   
        Box segmenterControlsPanel = Box.createVerticalBox();
    segmenterControlsPanel.setBackground(c);
    TitledBorder title = BorderFactory.createTitledBorder(
      BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),
      "Segmenter Controls");
    title.setTitleJustification(TitledBorder.CENTER);
    segmenterControlsPanel.setBorder(title);
     
    JPanel inputFileNamePanel = new JPanel();
    inputFileNamePanel.setBackground(c);
   
View Full Code Here

    //int numFeatures = classNames.size();

    JPanel selectFeaturesPanel = new JPanel();
    selectFeaturesPanel.setBackground(c);
    TitledBorder title = BorderFactory.createTitledBorder(
      BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),
      "Feature Extractors");
    title.setTitleJustification(TitledBorder.CENTER);
    selectFeaturesPanel.setBorder(title);
    controlsPanel.add(selectFeaturesPanel);


    JPanel selectMetaFeaturesPanel = new JPanel();
    selectMetaFeaturesPanel.setBackground(c);
    TitledBorder metaTitle = BorderFactory.createTitledBorder(
      BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),
      "Meta Feature Extractors");
        selectMetaFeaturesPanel.setBorder(metaTitle);
    metaTitle.setTitleJustification(TitledBorder.CENTER);
        controlsPanel.add(selectMetaFeaturesPanel);
   
        clearNonMetaFeatures = new JCheckBox("clear non-meta features");
        clearNonMetaFeatures.setBackground(c);
        clearNonMetaFeatures.setSelected(true);
View Full Code Here

TOP

Related Classes of javax.swing.border.TitledBorder

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.