Package javax.swing.border

Examples of javax.swing.border.EtchedBorder


 
  private void init(){
    setUndecorated(true);   
   
    topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.Y_AXIS))
    topPanel.setBorder(new EtchedBorder(EtchedBorder.LOWERED));
    progressBar.setBorderPainted(true);
    progressBar.setOrientation(JProgressBar.HORIZONTAL);
    progressBar.setValue(0)
    progressBar.setAlignmentX(Component.LEFT_ALIGNMENT);
    labelProgress.setFont(new Font("SansSerif", Font.PLAIN, 10));
    labelProgress.setPreferredSize(new Dimension(350, 15));
    labelProgress.setText(initMessage);
    labelProgress.setAlignmentX(Component.LEFT_ALIGNMENT);
    labelVersion.setText("pdfsam "+GuiClient.getVersion());
    labelVersion.setPreferredSize(new Dimension(350, 15));
    labelVersion.setFont(new Font("SansSerif", Font.BOLD, 10));
    labelVersion.setAlignmentY(JLabel.BOTTOM_ALIGNMENT);
    labelVersion.setAlignmentX(Component.LEFT_ALIGNMENT);
    topPanel.add(labelProgress);
    topPanel.add(progressBar);
    topPanel.add(Box.createVerticalGlue());
    topPanel.add(labelVersion);
    topPanel.setOpaque(false);
   
    bottomPanel.setLayout(new BoxLayout(bottomPanel, BoxLayout.LINE_AXIS));
    bottomPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
    bottomPanel.setBorder(new EtchedBorder(EtchedBorder.LOWERED));
    exitButton.setText("Exit");   
    exitButton.setActionCommand(ApplicationExitMediator.EXIT_COMMAND);
    exitButton.addActionListener(new ApplicationExitMediator());   
    bottomPanel.add(Box.createHorizontalGlue());
    bottomPanel.add(exitButton);
View Full Code Here


        settingsOptionsPanel.add(loadDefaultEnvLabel);
        settingsOptionsPanel.add(defaultDirLabel);
     
         loadDefaultEnv= new JTextField();
         loadDefaultEnv.setText(Configuration.getInstance().getDefaultEnvironment());     
        loadDefaultEnv.setBorder(new EtchedBorder(EtchedBorder.LOWERED));
        settingsOptionsPanel.add(loadDefaultEnv);
   
        defaultDirectory= new JTextField();
        defaultDirectory.setText(config.getDefaultWorkingDirectory());
        defaultDirectory.setBorder(new EtchedBorder(EtchedBorder.LOWERED));
        settingsOptionsPanel.add(defaultDirectory);

//JCOMBO
        languageCombo = new JComboBox(loadLanguages().toArray());
      languageCombo.setBorder(new EtchedBorder(EtchedBorder.LOWERED));
        try{
       for (int i=0; i<languageCombo.getItemCount(); i++){
           if (((StringItem)languageCombo.getItemAt(i)).getId().equals(config.getSelectedLanguage())){
             languageCombo.setSelectedItem(languageCombo.getItemAt(i));
               break;
           }
       }

        }catch (Exception e){
          log.error(GettextResource.gettext(config.getI18nResourceBundle(),"Error: "), e);
        }
       
        comboLaf = new JComboBox(ThemeUtility.getLAFList().toArray());
        comboLaf.setBorder(new EtchedBorder(EtchedBorder.LOWERED));       
        try{
          String lookAndFeel = Integer.toString(Configuration.getInstance().getLookAndFeel());
       for (int i=0; i<comboLaf.getItemCount(); i++){
           if (((StringItem)comboLaf.getItemAt(i)).getId().equals(lookAndFeel)){
             comboLaf.setSelectedItem(comboLaf.getItemAt(i));
             break;
           }
       }
      }catch (Exception e){
        log.error(GettextResource.gettext(config.getI18nResourceBundle(),"Error: "), e);
      }      
     
        comboTheme = new JComboBox(ThemeUtility.getThemeList().toArray());
        comboTheme.setBorder(new EtchedBorder(EtchedBorder.LOWERED));       
        try{
          String theme = Integer.toString(Configuration.getInstance().getTheme());
          for (int i=0; i<comboTheme.getItemCount(); i++){
              if (((StringItem)comboTheme.getItemAt(i)).getId().equals(theme)){
                  comboTheme.setSelectedItem(comboTheme.getItemAt(i));
                  break;
              }
          }
      }catch (Exception e){
        log.error(GettextResource.gettext(config.getI18nResourceBundle(),"Error: "), e);
      }      
        if (!ThemeUtility.isPlastic(Integer.parseInt(((StringItem)(comboLaf.getSelectedItem())).getId()))){
            comboTheme.setEnabled(false);
        }
        comboLaf.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                try{
                    if (!(ThemeUtility.isPlastic(Integer.parseInt(((StringItem)comboLaf.getSelectedItem()).getId())))){
                        comboTheme.setEnabled(false);
                    }
                    else{
                        comboTheme.setEnabled(true);
                    }
                }
                catch(Exception exc){
                    comboTheme.setFocusable(false);
                }
            }
        });
      
      comboLog = new JComboBox(loadLogLevels().toArray());
        comboLog.setBorder(new EtchedBorder(EtchedBorder.LOWERED));       
        try{
       for (int i=0; i<comboLog.getItemCount(); i++){
           if (((StringItem)comboLog.getItemAt(i)).getId().equals(Integer.toString(Configuration.getInstance().getLoggingLevel()))){
            comboLog.setSelectedItem(comboLog.getItemAt(i));
               break;
           }
       }
      }catch (Exception e){
        log.error(GettextResource.gettext(config.getI18nResourceBundle(),"Error: "), e);
     
     
      checkNewVersion = new JCheckBox(GettextResource.gettext(config.getI18nResourceBundle(),"Check for updates at startup"));
      checkNewVersion.setSelected(config.isCheckForUpdates());
      settingsOptionsPanel.add(checkNewVersion);

      comboThumbnailsCreators = new JComboBox(ThumbnailCreatorsRegisty.getInstalledCreators().toArray());
      comboThumbnailsCreators.setBorder(new EtchedBorder(EtchedBorder.LOWERED));
      try{
       for (int i=0; i<comboThumbnailsCreators.getItemCount(); i++){
           if (((StringItem)comboThumbnailsCreators.getItemAt(i)).getId().equals(config.getThumbnailsCreatorIdentifier())){
             comboThumbnailsCreators.setSelectedItem(comboThumbnailsCreators.getItemAt(i));
               break;
View Full Code Here

        textInfoScrollPanel.setPreferredSize(new Dimension(300, 100));

        textInfoArea = new JTextPane();
        textInfoArea.setFont(new Font("Dialog", Font.PLAIN, 9));
        textInfoArea.setPreferredSize(new Dimension(300,100));
        textInfoArea.setBorder(new EtchedBorder(EtchedBorder.LOWERED));
        textInfoArea.setContentType("text/html");  
        textInfoArea.setText("<html><head></head><body>"+GuiClient.getApplicationName()+"<br><br>"
            +GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Version: ")+GuiClient.getVersion()+"<br>"
            +GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Console version: ")+ConsoleServicesFacade.VERSION+"<br>"
            +GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Developed by: ")+GuiClient.AUTHOR+"<br>"
            +GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Build date: ")+GuiClient.getBuildDate()+"<br>"
            +GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Java home: ")+javaHome+"<br>"
            +GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Java version: ")+javaVersion+"<br>"
            +GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Max memory: ")+(Runtime.getRuntime().maxMemory()/1048576)+"Mb<br>"
            +GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Configuration file: ")+configPath+"<br>"
            +GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Website: ")+"<a href=\"http://www.pdfsam.org\" title=\"pdfsam\">http://www.pdfsam.org</a>"
            +"<br><br>"+getThanksText()+"</body></html>");
        textInfoArea.setEditable(false);
        textInfoScrollPanel.setViewportView(textInfoArea);

//END_TEXT_AREA
//TABLE_PLUGS       
        final JScrollPane installedPluginsScrollPanel = new JScrollPane();
        installedPluginsScrollPanel.setPreferredSize(new Dimension(300,100));

        tablePlugins = new JTable();
        PluginsTableModel tablePluginsModel = new PluginsTableModel(plugins);
        String[] i18nColumnsName = {GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Name"),GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Version"),GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Author")};
        tablePluginsModel.setColumnNames(i18nColumnsName);
        tablePlugins.setModel(tablePluginsModel);
        tablePlugins.setGridColor(Color.LIGHT_GRAY);
        tablePlugins.setFocusable(false);
        tablePlugins.setRowSelectionAllowed(false);
        tablePlugins.setIntercellSpacing(new Dimension(2, 2));
        tablePlugins.setBorder(new EtchedBorder(EtchedBorder.LOWERED));     
        installedPluginsScrollPanel.setViewportView(tablePlugins);
//END_TABLE_PLUGS
        add(textInfoScrollPanel);
        add(Box.createRigidArea(new Dimension(0, 10)));
        add(installedPluginsScrollPanel);
View Full Code Here

  /**
   * Common initialization
   */
  private void init() {
    setBorder(new EtchedBorder(EtchedBorder.LOWERED));
    setFocusable(false);
  }
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

    previousMonth.addActionListener(this);
    previousMonth.setToolTipText("Previous Month");
    c.gridx++;
    g.setConstraints(previousMonth, c);
    dateText = (JLabel) header.add(new JLabel("", JLabel.CENTER));
    dateText.setBorder(new EtchedBorder(EtchedBorder.LOWERED));
    c.gridx++;
    c.weightx = 1.0;
    c.fill = c.BOTH;
    g.setConstraints(dateText, c);
    nextMonth = (JButton) header.add(new JButton(">"));
View Full Code Here

        cache.addObserver(this);

        // build a subpanel for other controls and stats
        JPanel stat_panel = new JPanel();
        stat_panel.setBackground(LIGHT_BLUE);
        stat_panel.setBorder(new EtchedBorder(EtchedBorder.LOWERED));
        stat_panel.setLayout(new FlowLayout(FlowLayout.CENTER, 10, 2));

        // buttons
        gc_btn    = new JButton("Force GC");
        flush_btn = new JButton("Flush Cache");
View Full Code Here

    public static Border getImageBorder() {
        return getPaneBorder(); // new CompoundBorder(getPaneBorder(), new MatteBorder(6, 6, 6, 6, Colors.EditorBackground));
    }

    public static Border getPaneBorder() {
        return new EtchedBorder(EtchedBorder.LOWERED, new Color(48, 48, 48), new Color(23, 23, 23));
    }
View Full Code Here

    searchTable.setFillsViewportHeight(true);
    searchTable.setSelectionBackground(searchTable.getBackground());
    searchTable.setSelectionForeground(new Color(213, 163, 0));
    searchTable.setGridColor(new Color(44, 44, 44));
    searchTable.setShowVerticalLines(false);
    searchTable.setBorder(new EtchedBorder());
    searchTable.setFont(new Font("Calibri", Font.PLAIN, 14));
    searchWidget.setLocationRelativeTo(UISession.getPresenter()
        .getAurousFrame());

  }
View Full Code Here

  public ControlPanel() throws IOException {

    setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
    setBackground(background);
    setBorder(new EtchedBorder());
    final InputStream in = this.getClass().getResourceAsStream(
        "/resources/fontawesome-webfont.ttf");
    Font ttfBase = null;
    try {
      ttfBase = Font.createFont(Font.TRUETYPE_FONT, in);
View Full Code Here

TOP

Related Classes of javax.swing.border.EtchedBorder

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.