Package javax.swing.border

Examples of javax.swing.border.TitledBorder


      gbc.gridx = gbc.gridy = 0;
      gbc.anchor = GridBagConstraints.NORTHWEST;
      gbc.weighty = 1.0;

      final JPanel panel = new JPanel(new GridBagLayout());
      panel.setBorder(new TitledBorder(new LineBorder(Color.BLACK),
      "Preceding Suggestions"));

      final SuggestionRowPanel rowPanel = new SuggestionRowPanel(
          this.queryResult_preceding, this.varSO, this.varPred);
      rowPanel.setLayout(null);
View Full Code Here


      gbc.gridx = gbc.gridy = 0;
      gbc.anchor = GridBagConstraints.NORTHWEST;
      gbc.weighty = 1.0;

      final JPanel panel = new JPanel(new GridBagLayout());
      panel.setBorder(new TitledBorder(new LineBorder(Color.BLACK),
      "Succeeding Suggestions"));

      final SuggestionRowPanel rowPanel = new SuggestionRowPanel(
          this.queryResult_succeeding, this.varSO, this.varPred);
      rowPanel.setLayout(null);
View Full Code Here

                });
                contentPanel.add(grammarTypeComboBox, cc.xy(5, 3));

                //======== lexicalItemPanel ========
                {
                    lexicalItemPanel.setBorder(new TitledBorder(null, "Lexical Items", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION));
                    lexicalItemPanel.setLayout(new FormLayout(
                            new ColumnSpec[] {
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW)
                            },
                            new RowSpec[] {
                                    new RowSpec(RowSpec.TOP, Sizes.DEFAULT, RowSpec.DEFAULT_GROW)
                            }
                    ));

                    //======== lexLeftPanel ========
                    {
                        lexLeftPanel.setLayout(new FormLayout(
                                new ColumnSpec[] {
                                        new ColumnSpec(ColumnSpec.DEFAULT, Sizes.dluX(10), FormSpec.NO_GROW),
                                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW)
                                },
                                new RowSpec[] {
                                        FormFactory.DEFAULT_ROWSPEC,
                                        FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC,
                                        FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC,
                                        FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC,
                                        FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC
                                }
                        ));

                        //---- cbIdentifier ----
                        cbIdentifier.setText("Identifier");
                        lexLeftPanel.add(cbIdentifier, cc.xywh(1, 1, 2, 1));

                        //---- cbInteger ----
                        cbInteger.setText("Integer");
                        lexLeftPanel.add(cbInteger, cc.xywh(1, 3, 2, 1));

                        //---- cbFloat ----
                        cbFloat.setText("Float");
                        lexLeftPanel.add(cbFloat, cc.xywh(1, 5, 2, 1));

                        //---- cbComments ----
                        cbComments.setText("Comments");
                        lexLeftPanel.add(cbComments, cc.xywh(1, 7, 2, 1));
                        cbComments.addActionListener(new ActionListener(){
                            public void actionPerformed(ActionEvent event) {
                                if (cbComments.isSelected()) {
                                    cbSingleLine.setEnabled(true);
                                    cbMultiLine.setEnabled(true);
                                } else {
                                    cbSingleLine.setEnabled(false);
                                    cbMultiLine.setEnabled(false);
                                }
                            }
                        });

                        //======== commentsPanel ========
                        {
                            commentsPanel.setBorder(new TitledBorder(null, null, TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION));
                            commentsPanel.setLayout(new FormLayout(
                                    new ColumnSpec[] {
                                            FormFactory.DEFAULT_COLSPEC
                                    },
                                    new RowSpec[] {
View Full Code Here

    pnlNorth.add(new JLabel("Select Datasource"));
    pnlNorth.add(dataSourceList);

    JScrollPane scrlPane = new JScrollPane(reportTable);
    scrlPane.setBorder(new TitledBorder("Report data"));

    add(pnlNorth, BorderLayout.NORTH);
    add(scrlPane, BorderLayout.CENTER);
    add(btns, BorderLayout.SOUTH);
  }
View Full Code Here

    buttonBar = new ButtonBar(ButtonBar.SAVE | ButtonBar.CANCEL);
    buttonBar.addButtonBarListener(this);

    scrlPane = new JScrollPane(tblDataSources);
    scrlPane.addMouseListener(popUpAction);
    scrlPane.setBorder(new TitledBorder("DataSources"));
  }
View Full Code Here

    }

    public static void updateBorderTitleForeground(JPanel panel) {
        Border border = panel.getBorder();
        if (border instanceof TitledBorder) {
            TitledBorder titledBorder = (TitledBorder) border;
            //titledBorder.setTitleColor(com.intellij.util.ui.GUIUtil.getLabelForeground());
            titledBorder.setTitleColor(new DBNColor(new Color(-12029286), new Color(-10058060)));
        }
    }
View Full Code Here

   
    JPanel pnlSouth = new JPanel(new BorderLayout());
   
    if(log == null) {
      JPanel pnlChk = new JPanel(new FlowLayout(FlowLayout.CENTER));
      pnlChk.setBorder(new TitledBorder("Email Log to:"));
      pnlChk.add(taskAssignees);
      pnlChk.add(taskContacts);
      pnlChk.add(projectContacts);
     
      pnlSouth.add(pnlChk, BorderLayout.NORTH);
View Full Code Here

        JPanel serverPanel = new JPanel();
        serverPanel.add( btnStart );
        serverPanel.add( btnStop );
        serverPanel.add( btnCleanStart );
        serverPanel.setBorder( new TitledBorder( "Server Controls" ) );

        entryInjector = new EntryInjector( provServerHost, provServerPort, provServerBindDn, provServerPwd );
        entryInjector.setBorder( new TitledBorder( "Entry Injector" ) );
        entryInjector.setConfig( config );

        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
        frame.setTitle( "Syncrepl consumer UI" );
View Full Code Here

    public void loadUI()
    {
        if (loaded == false)
        {
            setBorder(new TitledBorder(""));
            loaded = true;
        }
    }
View Full Code Here

    public void loadUI()
    {
        if (loaded == false)
        {
            bundle = ResourceBundle.getBundle("plugins/audioPlayer/javazoom/jlgui/player/amp/util/ui/visual");
            setBorder(new TitledBorder(getResource("title")));
            modePane = new JPanel();
            modePane.setBorder(new TitledBorder(getResource("mode.title")));
            modePane.setLayout(new FlowLayout());
            spectrumMode = new JRadioButton(getResource("mode.spectrum"));
            spectrumMode.addActionListener(this);
            oscilloMode = new JRadioButton(getResource("mode.oscilloscope"));
            oscilloMode.addActionListener(this);
            offMode = new JRadioButton(getResource("mode.off"));
            offMode.addActionListener(this);
            SpectrumTimeAnalyzer analyzer = null;
            if (player != null)
            {
                analyzer = player.getSkin().getAcAnalyzer();
                int displayMode = SpectrumTimeAnalyzer.DISPLAY_MODE_OFF;
                if (analyzer != null)
                {
                    displayMode = analyzer.getDisplayMode();
                }
                if (displayMode == SpectrumTimeAnalyzer.DISPLAY_MODE_SPECTRUM_ANALYSER)
                {
                    spectrumMode.setSelected(true);
                }
                else if (displayMode == SpectrumTimeAnalyzer.DISPLAY_MODE_SCOPE)
                {
                    oscilloMode.setSelected(true);
                }
                else if (displayMode == SpectrumTimeAnalyzer.DISPLAY_MODE_OFF)
                {
                    offMode.setSelected(true);
                }
            }
            ButtonGroup modeGroup = new ButtonGroup();
            modeGroup.add(spectrumMode);
            modeGroup.add(oscilloMode);
            modeGroup.add(offMode);
            modePane.add(spectrumMode);
            modePane.add(oscilloMode);
            modePane.add(offMode);
            spectrumPane = new JPanel();
            spectrumPane.setLayout(new BoxLayout(spectrumPane, BoxLayout.Y_AXIS));
            peaksBox = new JCheckBox(getResource("spectrum.peaks"));
            peaksBox.setAlignmentX(Component.LEFT_ALIGNMENT);
            peaksBox.addActionListener(this);
            if ((analyzer != null) && (analyzer.isPeaksEnabled())) peaksBox.setSelected(true);
            else peaksBox.setSelected(false);
            spectrumPane.add(peaksBox);
            // Analyzer falloff.
            JLabel analyzerFalloffLabel = new JLabel(getResource("spectrum.analyzer.falloff"));
            analyzerFalloffLabel.setAlignmentX(Component.LEFT_ALIGNMENT);
            spectrumPane.add(analyzerFalloffLabel);
            int minDecay = (int) (SpectrumTimeAnalyzer.MIN_SPECTRUM_ANALYSER_DECAY * 100);
            int maxDecay = (int) (SpectrumTimeAnalyzer.MAX_SPECTRUM_ANALYSER_DECAY * 100);
            int decay = (maxDecay + minDecay) / 2;
            if (analyzer != null)
            {
                decay = (int) (analyzer.getSpectrumAnalyserDecay() * 100);
            }
            analyzerFalloff = new JSlider(JSlider.HORIZONTAL, minDecay, maxDecay, decay);
            analyzerFalloff.setMajorTickSpacing(1);
            analyzerFalloff.setPaintTicks(true);
            analyzerFalloff.setMaximumSize(new Dimension(150, analyzerFalloff.getPreferredSize().height));
            analyzerFalloff.setAlignmentX(Component.LEFT_ALIGNMENT);
            analyzerFalloff.setSnapToTicks(true);
            analyzerFalloff.addChangeListener(this);
            spectrumPane.add(analyzerFalloff);
            // Peaks falloff.
            JLabel peaksFalloffLabel = new JLabel(getResource("spectrum.peaks.falloff"));
            peaksFalloffLabel.setAlignmentX(Component.LEFT_ALIGNMENT);
            spectrumPane.add(peaksFalloffLabel);
            int peakDelay = SpectrumTimeAnalyzer.DEFAULT_SPECTRUM_ANALYSER_PEAK_DELAY;
            int fps = SpectrumTimeAnalyzer.DEFAULT_FPS;
            if (analyzer != null)
            {
                fps = analyzer.getFps();
                peakDelay = analyzer.getPeakDelay();
            }
            peaksFalloff = new JSlider(JSlider.HORIZONTAL, 0, 4, computeSliderValue(peakDelay, fps));
            peaksFalloff.setMajorTickSpacing(1);
            peaksFalloff.setPaintTicks(true);
            peaksFalloff.setSnapToTicks(true);
            Hashtable labelTable = new Hashtable();
            labelTable.put(new Integer(0), new JLabel("Slow"));
            labelTable.put(new Integer(4), new JLabel("Fast"));
            peaksFalloff.setLabelTable(labelTable);
            peaksFalloff.setPaintLabels(true);
            peaksFalloff.setMaximumSize(new Dimension(150, peaksFalloff.getPreferredSize().height));
            peaksFalloff.setAlignmentX(Component.LEFT_ALIGNMENT);
            peaksFalloff.addChangeListener(this);
            spectrumPane.add(peaksFalloff);
            // Spectrum pane
            spectrumPane.setBorder(new TitledBorder(getResource("spectrum.title")));
            if (getResource("oscilloscope.title") != null)
            {
                oscilloPane = new JPanel();
                oscilloPane.setBorder(new TitledBorder(getResource("oscilloscope.title")));
            }
            GridBagLayout layout = new GridBagLayout();
            setLayout(layout);
            GridBagConstraints cnts = new GridBagConstraints();
            cnts.fill = GridBagConstraints.BOTH;
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.