Package javax.swing.border

Examples of javax.swing.border.TitledBorder


    fileIOPanel.add(fileNameLabel);
    add(fileIOPanel);
   
    JPanel synthControlsPanel = new JPanel();
    synthControlsPanel.setBackground(c);
    TitledBorder title = BorderFactory.createTitledBorder(
      BorderFactory.createEtchedBorder(EtchedBorder.LOWERED),
      "Synthesizer Controls");
    title.setTitleJustification(TitledBorder.CENTER);
    synthControlsPanel.setBorder(title);
        synthControlsPanel.setAlignmentY(Component.CENTER_ALIGNMENT);
   
        JPanel outputFileNamePanel = new JPanel();
        outputFileNamePanel.setBackground(c);
View Full Code Here


        JButton enableButton = new JButton("Enable");

        JButton disableButton = new JButton("Disable");

        private ControlsPanel() {
            setBorder(new TitledBorder("Marquee Controls"));

            positionCombo.setModel(new PositionComboModel());

            JSeparator separator;
View Full Code Here

        contentPane = new JPanel();
        contentPane.setBorder(new EmptyBorder(16, 16, 16, 16));
        contentPane.setLayout(new BorderLayout(16, 16));

        sourceControls = new JPanel();
        sourceControls.setBorder(new TitledBorder("Source"));
        sourceControls.setLayout(new BoxLayout(sourceControls, BoxLayout.X_AXIS));

        mediaLabel = new JLabel("Media:");
        mediaLabel.setDisplayedMnemonic('m');
        sourceControls.add(mediaLabel);

        sourceControls.add(Box.createHorizontalStrut(4));

        mediaTextField = new JTextField();
        mediaTextField.setFocusAccelerator('m');
        sourceControls.add(mediaTextField);

        contentPane.add(sourceControls, BorderLayout.NORTH);

        videoPanel = new JPanel();
        videoPanel.setLayout(new GridLayout(1, 2, 16, 0));

        localCanvas = new Canvas();
        localCanvas.setBackground(Color.black);
        localCanvas.setSize(320, 180);

        localStreamControls = new JPanel();
        localStreamControls.setLayout(new BoxLayout(localStreamControls, BoxLayout.X_AXIS));

        localStreamControls.add(Box.createHorizontalStrut(4));

        streamToLabel = new JLabel("Stream To:");
        streamToLabel.setDisplayedMnemonicIndex(7);
        localStreamControls.add(streamToLabel);

        streamToTextField = new JTextField();
        streamToTextField.setFocusAccelerator('t');
        streamToTextField.setColumns(12);
        localStreamControls.add(streamToTextField);

        sendButton = new JButton("Send");
        sendButton.setMnemonic('s');
        localStreamControls.add(sendButton);

        sendSnapshotButton = new JButton("Snap");
        sendSnapshotButton.setMnemonic('n');
        localStreamControls.add(sendSnapshotButton);

        localVideoSurface = mediaPlayerFactory.newVideoSurface(localCanvas);
        localMediaPlayer.setVideoSurface(localVideoSurface);

        localPanel = new JPanel();
        localPanel.setBorder(new TitledBorder("Local"));
        localPanel.setLayout(new BorderLayout(0, 8));
        localPanel.add(localCanvas, BorderLayout.CENTER);
        localPanel.add(localStreamControls, BorderLayout.SOUTH);

        remoteCanvas = new Canvas();
        remoteCanvas.setBackground(Color.black);
        remoteCanvas.setSize(320, 180);

        remoteStreamControls = new JPanel();
        remoteStreamControls.setLayout(new BoxLayout(remoteStreamControls, BoxLayout.X_AXIS));

        streamFromLabel = new JLabel("Stream From:");
        streamFromLabel.setDisplayedMnemonicIndex(7);
        remoteStreamControls.add(streamFromLabel);

        remoteStreamControls.add(Box.createHorizontalStrut(4));

        streamFromTextField = new JTextField();
        streamFromTextField.setFocusAccelerator('f');
        streamFromTextField.setColumns(12);
        remoteStreamControls.add(streamFromTextField);

        receiveButton = new JButton("Receive");
        receiveButton.setMnemonic('r');
        remoteStreamControls.add(receiveButton);

        receiveSnapshotButton = new JButton("Snap");
        receiveSnapshotButton.setMnemonic('a');
        remoteStreamControls.add(receiveSnapshotButton);

        remoteVideoSurface = mediaPlayerFactory.newVideoSurface(remoteCanvas);
        remoteMediaPlayer.setVideoSurface(remoteVideoSurface);

        remotePanel = new JPanel();
        remotePanel.setBorder(new TitledBorder("Remote"));
        remotePanel.setLayout(new BorderLayout(0, 8));
        remotePanel.add(remoteCanvas, BorderLayout.CENTER);
        remotePanel.add(remoteStreamControls, BorderLayout.SOUTH);

        videoPanel.add(localPanel);
View Full Code Here

        JButton enableButton = new JButton("Enable");

        JButton disableButton = new JButton("Disable");

        private ControlsPanel() {
            setBorder(new TitledBorder("Logo Controls"));

            positionCombo.setModel(new PositionComboModel());

            JSeparator separator;
View Full Code Here

    });
    envelopeYREd.setPreferredSize(new Dimension(80, 26));
    panel_4.setLayout(new BorderLayout(0, 0));

    JPanel panel_6 = new JPanel();
    panel_6.setBorder(new TitledBorder(null, "Transform", TitledBorder.LEADING, TitledBorder.TOP, null, null));
    panel_6.setPreferredSize(new Dimension(204, 10));
    panel_4.add(panel_6, BorderLayout.EAST);
    panel_6.setLayout(null);

    envelopeXScaleREd = new JWFNumberField();
    envelopeXScaleREd.setText("1");
    envelopeXScaleREd.setPreferredSize(new Dimension(80, 26));
    envelopeXScaleREd.setFont(new Font("Dialog", Font.PLAIN, 10));
    envelopeXScaleREd.setBounds(105, 19, 80, 26);
    panel_6.add(envelopeXScaleREd);

    JLabel lblFrameScale = new JLabel();
    lblFrameScale.setText("Frame Scale");
    lblFrameScale.setPreferredSize(new Dimension(38, 26));
    lblFrameScale.setHorizontalAlignment(SwingConstants.RIGHT);
    lblFrameScale.setFont(new Font("Dialog", Font.BOLD, 10));
    lblFrameScale.setBounds(10, 19, 93, 26);
    panel_6.add(lblFrameScale);

    JLabel lblFrameOffset = new JLabel();
    lblFrameOffset.setText("Frame Offset");
    lblFrameOffset.setPreferredSize(new Dimension(38, 26));
    lblFrameOffset.setHorizontalAlignment(SwingConstants.RIGHT);
    lblFrameOffset.setFont(new Font("Dialog", Font.BOLD, 10));
    lblFrameOffset.setBounds(10, 45, 93, 26);
    panel_6.add(lblFrameOffset);

    envelopeXOffsetREd = new JWFNumberField();
    envelopeXOffsetREd.setPreferredSize(new Dimension(80, 26));
    envelopeXOffsetREd.setFont(new Font("Dialog", Font.PLAIN, 10));
    envelopeXOffsetREd.setBounds(105, 45, 80, 26);
    panel_6.add(envelopeXOffsetREd);

    envelopeYScaleREd = new JWFNumberField();
    envelopeYScaleREd.setText("1");
    envelopeYScaleREd.setPreferredSize(new Dimension(80, 26));
    envelopeYScaleREd.setFont(new Font("Dialog", Font.PLAIN, 10));
    envelopeYScaleREd.setBounds(105, 83, 80, 26);
    panel_6.add(envelopeYScaleREd);

    JLabel lblAmplitudeScale = new JLabel();
    lblAmplitudeScale.setText("Amplitude Scale");
    lblAmplitudeScale.setPreferredSize(new Dimension(38, 26));
    lblAmplitudeScale.setHorizontalAlignment(SwingConstants.RIGHT);
    lblAmplitudeScale.setFont(new Font("Dialog", Font.BOLD, 10));
    lblAmplitudeScale.setBounds(10, 83, 93, 26);
    panel_6.add(lblAmplitudeScale);

    JLabel lblAmplitudeOffset = new JLabel();
    lblAmplitudeOffset.setText("Amplitude Offset");
    lblAmplitudeOffset.setPreferredSize(new Dimension(38, 26));
    lblAmplitudeOffset.setHorizontalAlignment(SwingConstants.RIGHT);
    lblAmplitudeOffset.setFont(new Font("Dialog", Font.BOLD, 10));
    lblAmplitudeOffset.setBounds(10, 109, 93, 26);
    panel_6.add(lblAmplitudeOffset);

    envelopeYOffsetREd = new JWFNumberField();
    envelopeYOffsetREd.setPreferredSize(new Dimension(80, 26));
    envelopeYOffsetREd.setFont(new Font("Dialog", Font.PLAIN, 10));
    envelopeYOffsetREd.setBounds(105, 109, 80, 26);
    panel_6.add(envelopeYOffsetREd);

    envelopeApplyTransformBtn = new JButton();
    envelopeApplyTransformBtn.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        if (ctrl != null)
          ctrl.applyTransform(false);
      }
    });
    envelopeApplyTransformBtn.setToolTipText("");
    envelopeApplyTransformBtn.setText("Apply");
    envelopeApplyTransformBtn.setPreferredSize(new Dimension(141, 26));
    envelopeApplyTransformBtn.setFont(new Font("Dialog", Font.BOLD, 10));
    envelopeApplyTransformBtn.setBounds(23, 152, 80, 26);
    panel_6.add(envelopeApplyTransformBtn);

    JPanel panel_5 = new JPanel();
    panel_5.setPreferredSize(new Dimension(174, 10));
    panel_5.setBorder(new TitledBorder(null, "Edit", TitledBorder.LEADING, TitledBorder.TOP, null, null));
    panel_4.add(panel_5, BorderLayout.WEST);
    panel_5.setLayout(null);

    envelopeAddPointButton = new JButton();
    envelopeAddPointButton.setBounds(17, 20, 141, 50);
    panel_5.add(envelopeAddPointButton);
    envelopeAddPointButton.setFont(new Font("Dialog", Font.BOLD, 10));
    envelopeAddPointButton.setToolTipText("Add a point to the curve (click at the area to place it)");
    envelopeAddPointButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        if (ctrl != null)
          ctrl.addPoint();
      }
    });
    envelopeAddPointButton.setText("Add point");
    envelopeAddPointButton.setPreferredSize(new Dimension(141, 50));

    envelopeRemovePointButton = new JButton();
    envelopeRemovePointButton.setBounds(17, 93, 141, 26);
    panel_5.add(envelopeRemovePointButton);
    envelopeRemovePointButton.setFont(new Font("Dialog", Font.BOLD, 10));
    envelopeRemovePointButton.setToolTipText("Remove a point (after clikcing this button, click at a point)");
    envelopeRemovePointButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        if (ctrl != null)
          ctrl.removePoint();
      }
    });
    envelopeRemovePointButton.setText("Remove point");
    envelopeRemovePointButton.setPreferredSize(new Dimension(141, 26));

    envelopeClearButton = new JButton();
    envelopeClearButton.setBounds(17, 157, 141, 26);
    panel_5.add(envelopeClearButton);
    envelopeClearButton.setFont(new Font("Dialog", Font.BOLD, 10));
    envelopeClearButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        if (ctrl != null)
          ctrl.clearEnvelope();
      }
    });
    envelopeClearButton.setText("Reset curve");
    envelopeClearButton.setPreferredSize(new Dimension(141, 26));

    envelopeApplyTransformReverseBtn = new JButton();
    envelopeApplyTransformReverseBtn.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        if (ctrl != null)
          ctrl.applyTransform(true);
      }
    });
    envelopeApplyTransformReverseBtn.setToolTipText("Apply, but revert params, can also be used as undo-function");
    envelopeApplyTransformReverseBtn.setText("Reverse");
    envelopeApplyTransformReverseBtn.setPreferredSize(new Dimension(141, 26));
    envelopeApplyTransformReverseBtn.setFont(new Font("Dialog", Font.BOLD, 10));
    envelopeApplyTransformReverseBtn.setBounds(105, 152, 80, 26);
    panel_6.add(envelopeApplyTransformReverseBtn);

    panel_7 = new JPanel();
    panel_7.setBorder(new TitledBorder(null, "MP3 Sound", TitledBorder.LEADING, TitledBorder.TOP, null, null));
    panel_4.add(panel_7, BorderLayout.CENTER);
    panel_7.setLayout(null);

    envelopeImportMP3Button = new JButton();
    envelopeImportMP3Button.setBounds(16, 21, 184, 26);
View Full Code Here

      panel_1 = new JPanel();
      panel_1.setPreferredSize(new Dimension(10, 200));
      panel_1.setLayout(new BorderLayout(0, 0));

      JPanel panel_2 = new JPanel();
      panel_2.setBorder(new TitledBorder(null, "Preview", TitledBorder.LEADING, TitledBorder.TOP, null, null));
      panel_1.add(panel_2);
      panel_2.setLayout(new BorderLayout(0, 0));

      previewRootPanel = new JPanel();
      panel_2.add(previewRootPanel);
View Full Code Here

    endB.setName(ACTION_END);
    endB.addActionListener(listener);

    ctrlPanel.add(endB);
   
    ctrlPanel.setBorder(new CompoundBorder(new TitledBorder(null, null, TitledBorder.LEFT, TitledBorder.TOP), new EmptyBorder(0,0,0,0)));

    return ctrlPanel;
  }
View Full Code Here

  private JPanel createHeaderPanel() {
    final JPanel header = new JPanel();

    header.add(new JLabel("<html><div align=\"center\"><font size=\"+1\" color=\"white\">"+"Assistant of installation"+"</font></div></html>"));//$NON-NLS-1$//$NON-NLS-3$
    header.setBackground(new Color(90, 100, 130));
    header.setBorder(new CompoundBorder(new TitledBorder(null, null, TitledBorder.LEFT, TitledBorder.TOP), new EmptyBorder(0,0,0,0)));

    return header;
  }
View Full Code Here

    final WidgetMiniToolbar list = new WidgetMiniToolbar(LResources.AXES_ICON, WidgetMiniToolbar.LOCATION_NORTH, canvas);
    list.setToolTipText(LangTool.INSTANCE.getStringActions("PropBuilder.3")); //$NON-NLS-1$
    final MPanel panel     = new MPanel(false, true);
    final MPanel ticksPanel = new MPanel(false, true);

    ticksPanel.setBorder(new CompoundBorder(new TitledBorder(null, LangTool.INSTANCE.getString18("ParametersAxeFrame.17"), //$NON-NLS-1$
          TitledBorder.LEFT, TitledBorder.TOP), new EmptyBorder(0,0,0,0)));

    panel.add(cust.getShapeAxes());

    UIBuilder.addCombobox(ticksPanel, cust.getShapeTicks());
View Full Code Here

     * jbInit()
     * This function provides initialization for the gui objects
     */

    private void jbInit() throws Exception {
        titledBorder1=new TitledBorder("");
        border1=BorderFactory.createCompoundBorder(BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)), BorderFactory.createEmptyBorder(4, 4, 4, 4));
        border2=BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.white, Color.white, new Color(148, 145, 140), new Color(103, 101, 98));
        titledBorder2=new TitledBorder(new EtchedBorder(EtchedBorder.RAISED, Color.white, new Color(148, 145, 140)), "Processes");
        border3=BorderFactory.createLineBorder(Color.black, 2);
        titledBorder3=new TitledBorder(new EtchedBorder(EtchedBorder.RAISED, Color.white, new Color(148, 145, 140)), "Channel Output");
        this.setSize(400, 400);
        this.setTitle("Partitioner Test :" + channel.getLocalAddress());
        this.addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                this_windowClosing(e);
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.