Package javax.swing

Examples of javax.swing.JSeparator


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

            positionCombo.setModel(new PositionComboModel());

            JSeparator separator;

            add(new JLabel("X"));
            add(xTextField);
            add(new JLabel("Y"));
            add(yTextField);
            add(new JLabel("Position"));
            add(positionCombo);
            add(new JLabel("Opacity"));
            add(opacitySlider);
            add(new JLabel("File"));
            add(fileTextField);
            add(enableCheckBox);
            separator = new JSeparator(JSeparator.VERTICAL);
            separator.setPreferredSize(new Dimension(4, 20));
            add(separator);
            add(applyButton);
            separator = new JSeparator(JSeparator.VERTICAL);
            separator.setPreferredSize(new Dimension(4, 20));
            add(separator);
            add(enableButton);
            add(disableButton);

            opacitySlider.setPreferredSize(new Dimension(100, 16));
View Full Code Here


        JMenuItem mediaPlayStreamMenuItem = new JMenuItem("Play Stream...");
        mediaPlayFileMenuItem.setMnemonic('s');
        mediaMenu.add(mediaPlayStreamMenuItem);

        mediaMenu.add(new JSeparator());

        JMenuItem mediaExitMenuItem = new JMenuItem("Exit");
        mediaExitMenuItem.setMnemonic('x');
        mediaMenu.add(mediaExitMenuItem);
View Full Code Here

    aboutLabel.setFont(new Font("Calibri", Font.PLAIN, 13));
    aboutLabel.setHorizontalAlignment(SwingConstants.LEFT);
    aboutLabel.setBounds(10, 74, 344, 100);
    aboutWidget.getContentPane().add(aboutLabel);

    separator = new JSeparator();
    separator.setBounds(10, 186, 344, 2);
    aboutWidget.getContentPane().add(separator);

    socialLabel = new JLabel("Social");
    socialLabel.setHorizontalAlignment(SwingConstants.CENTER);
    socialLabel.setForeground(Color.WHITE);
    socialLabel.setFont(new Font("Calibri", Font.PLAIN, 20));
    socialLabel.setBounds(90, 245, 177, 27);
    aboutWidget.getContentPane().add(socialLabel);

    separator_1 = new JSeparator();
    separator_1.setBounds(10, 283, 344, 2);
    aboutWidget.getContentPane().add(separator_1);

    blogButton = new JButton();
    blogButton.addActionListener(e -> {
View Full Code Here

    add(mute);
    add(Box.createRigidArea(new Dimension(5, 0)));
    add(volume);
    add(Box.createRigidArea(new Dimension(5, 0)));

    final JSeparator separator = new JSeparator(SwingConstants.VERTICAL);
    separator.setBackground(new Color(160, 160, 160));

    final Dimension size = new Dimension(1,
        separator.getMaximumSize().height);

    separator.setMaximumSize(size);

    add(separator);
    add(Box.createRigidArea(new Dimension(10, 0)));

    durationPanel = new DurationPanel();
    add(durationPanel);

    final JSeparator separator1 = new JSeparator(SwingConstants.VERTICAL);
    final Dimension size1 = new Dimension(1,
        separator1.getMaximumSize().height);
    separator1.setMaximumSize(size1);
    add(separator1);
    add(Box.createRigidArea(new Dimension(10, 0)));

    shuffleStatusLabel = new JLabel("\uF074");
    shuffleStatusLabel.setFont(fontAwesome);
View Full Code Here

    viewProfileHyperLink.setFont(new Font("Segoe UI", Font.PLAIN, 12));
    viewProfileHyperLink.setBounds(70, 82, 217, 24);
    viewProfileHyperLink.setCursor(new Cursor(Cursor.HAND_CURSOR));
    settingsWidget.getContentPane().add(viewProfileHyperLink);

    separator = new JSeparator();
    separator.setForeground(Color.LIGHT_GRAY);
    separator.setBounds(10, 117, 497, 2);
    settingsWidget.getContentPane().add(separator);

    onlineServicesLabel = new JLabel("Online Service Settings");
    onlineServicesLabel.setForeground(Color.WHITE);
    onlineServicesLabel.setFont(new Font("Segoe UI", Font.PLAIN, 13));
    onlineServicesLabel.setBounds(10, 122, 155, 24);
    settingsWidget.getContentPane().add(onlineServicesLabel);

    separator_1 = new JSeparator();
    separator_1.setForeground(Color.LIGHT_GRAY);
    separator_1.setBounds(10, 184, 497, 2);
    settingsWidget.getContentPane().add(separator_1);

    notficationsLabel = new JLabel("Notfications");
    notficationsLabel.setForeground(Color.WHITE);
    notficationsLabel.setFont(new Font("Segoe UI", Font.PLAIN, 13));
    notficationsLabel.setBounds(10, 194, 155, 24);
    settingsWidget.getContentPane().add(notficationsLabel);

    showPlayBackAlertCheckbox = new JCheckBox("Display Alert");
    showPlayBackAlertCheckbox.setFont(new Font("Segoe UI", Font.PLAIN, 11));
    showPlayBackAlertCheckbox.setForeground(Color.WHITE);
    showPlayBackAlertCheckbox.setBackground(new Color(49, 49, 49));
    showPlayBackAlertCheckbox.setBounds(10, 241, 98, 23);
    settingsWidget.getContentPane().add(showPlayBackAlertCheckbox);

    lblWhenANew = new JLabel("When a new song plays while minimized");
    lblWhenANew.setForeground(Color.WHITE);
    lblWhenANew.setFont(new Font("Segoe UI", Font.PLAIN, 12));
    lblWhenANew.setBounds(10, 218, 222, 24);
    settingsWidget.getContentPane().add(lblWhenANew);

    playBackSettingsLabel = new JLabel("Playback Settings");
    playBackSettingsLabel.setForeground(Color.WHITE);
    playBackSettingsLabel.setFont(new Font("Segoe UI", Font.PLAIN, 13));
    playBackSettingsLabel.setBounds(10, 303, 155, 24);
    settingsWidget.getContentPane().add(playBackSettingsLabel);

    lowQualityCheckBox = new JCheckBox("Stream Lower Bitrate");
    lowQualityCheckBox.setBackground(new Color(49, 49, 49));
    lowQualityCheckBox.setForeground(Color.WHITE);
    lowQualityCheckBox.setFont(new Font("Segoe UI", Font.PLAIN, 11));
    lowQualityCheckBox.setBounds(10, 346, 134, 23);
    settingsWidget.getContentPane().add(lowQualityCheckBox);

    lblHelpsIfYoure = new JLabel("If you're experiencing buffering.");
    lblHelpsIfYoure.setForeground(Color.WHITE);
    lblHelpsIfYoure.setFont(new Font("Segoe UI", Font.PLAIN, 12));
    lblHelpsIfYoure.setBounds(10, 322, 209, 28);
    settingsWidget.getContentPane().add(lblHelpsIfYoure);

    saveSettingsButton = new JButton("APPLY");
    saveSettingsButton.addActionListener(e -> {
      Settings.setUserName(userNameField.getText().trim());
      Settings.setDisplayAlert(showPlayBackAlertCheckbox.isSelected());
      Settings.setStreamLowQuality(lowQualityCheckBox.isSelected());
      Settings.setSavePlayBack(savePlayBackCheckBox.isSelected());
      Settings.saveSettings(false);
    });
    saveSettingsButton.setForeground(Color.WHITE);
    saveSettingsButton.setBounds(323, 425, 89, 23);
    settingsWidget.getContentPane().add(saveSettingsButton);

    exitFrameButton = new JButton("CANCEL");
    exitFrameButton.addActionListener(e -> settingsWidget.dispose());
    exitFrameButton.setForeground(Color.WHITE);
    exitFrameButton.setBounds(422, 425, 89, 23);
    settingsWidget.getContentPane().add(exitFrameButton);

    separator_2 = new JSeparator();
    separator_2.setForeground(Color.LIGHT_GRAY);
    separator_2.setBounds(10, 292, 497, 8);
    settingsWidget.getContentPane().add(separator_2);
    settingsWidget.setType(Type.UTILITY);
    settingsWidget.setBounds(100, 100, 533, 484);
View Full Code Here

        stop_GUI();
      }
    });

    final JSeparator hzlFile1 = new JSeparator();

    chckbxmntmImportCustomList = new JCheckBoxMenuItem("Import Custom List");
    chckbxmntmImportCustomList.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(final ActionEvent e) {

        ImportCustomList();

      }
    });
    chckbxmntmImportCustomList.setEnabled(false);

    final JSeparator hzlFile2 = new JSeparator();

    final JMenuItem mntmExit = new JMenuItem("Exit");
    mntmExit.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(final ActionEvent arg0) {

        Exit();

      }
    });
    mntmExit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F4, InputEvent.ALT_MASK));

    // Info Menu Objects:
    final JMenuItem mntmMapInfo = new JMenuItem("Map Info");
    mntmMapInfo.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(final ActionEvent e) {

        MapInfo();
      }
    });

    // Help Menu Objects:
    final JMenuItem mntmAboutMlg = new JMenuItem("About MLG");
    mntmAboutMlg.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(final ActionEvent e) {

        AboutMLG();
      }
    });

    final JSeparator hzlHelp1 = new JSeparator();

    final JMenuItem mntmUpdateMlg = new JMenuItem("Update MLG");
    mntmUpdateMlg.addActionListener(new ActionListener() {

      @Override
View Full Code Here

    JLabel lblSelectYourWanted = new JLabel("    Select your Skin");
    lblSelectYourWanted.setHorizontalAlignment(SwingConstants.CENTER);
    popupMenu.add(lblSelectYourWanted);

    JSeparator separator = new JSeparator();
    popupMenu.add(separator);

    JMenuItem mntmYourDefaultOs = new JMenuItem("Your Default OS");
    popupMenu.add(mntmYourDefaultOs);
View Full Code Here

   
    JMenuItem mntmLogout = new JMenuItem("Logout");
  //  mntmLogout.addActionListener(new MenuLogoutListener(c));
    mnFile.add(mntmLogout);
   
    JSeparator separator = new JSeparator();
    mnFile.add(separator);
   
    JMenuItem mntmExit = new JMenuItem("Exit");
    mnFile.add(mntmExit);
   
View Full Code Here

        dialog.setVisible(true);
      }
    });
    mnFile.add(mntmRestore);

    JSeparator separator = new JSeparator();
    mnFile.add(separator);
    mnFile.add(mntmExit);

    mnMods = new JMenu("Mods");
    menuBar.add(mnMods);

    JMenuItem mntmGotoMinecraftMods = new JMenuItem("Minecraft Mods Forum");
    mntmGotoMinecraftMods.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        Application
            .getInstance()
            .openUrl(
                "http://www.minecraftforum.net/forum/51-released-mods/");
      }
    });
    mntmGotoMinecraftMods.setIcon(Application.icon("internet-web-browser"));
    mnMods.add(mntmGotoMinecraftMods);

    JMenuItem mntmRefreshModList = new JMenuItem("Refresh Mod List");
    mntmRefreshModList.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        refreshMods(MODS_URL);
      }
    });
    mntmRefreshModList.setIcon(Application.icon("view-refresh"));
    mnMods.add(mntmRefreshModList);

    JSeparator separator_1 = new JSeparator();
    mnMods.add(separator_1);

    contentPane = new JPanel();
    contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
    setContentPane(contentPane);
View Full Code Here

   */
  private JMenu buildWindowMenu() {
    menuWindow = addMenu("Vindu", KeyEvent.VK_V);
    addMenuItem(menuWindow, new CascadeWindows(), KeyEvent.VK_K, null,
        null, null, null, false);
    menuWindow.add(new JSeparator());
    return menuWindow;
  }
View Full Code Here

TOP

Related Classes of javax.swing.JSeparator

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.