Package javax.swing

Examples of javax.swing.Box$Filler$AccessibleBoxFiller


        super(GanttProject.correctLabel(GanttLanguage.getInstance().getText(
                "project")), GanttLanguage.getInstance().getText(
                "settingsProject"), owner);

        myProject = project;
        Box vbproject = Box.createVerticalBox();

        /*
         * JPanel filePanel = new JPanel(new BorderLayout()); filePanel.add(new
         * JLabel(language.getText("file")), BorderLayout.WEST);
         * vbproject.add(filePanel); vbproject.add(tfFile = new JTextField());
         * tfFile.setEditable(false); vbproject.add(new JPanel());
         */

        JPanel namePanel = new JPanel(new BorderLayout());
        namePanel.add(new JLabel(language.getText("name")), BorderLayout.WEST);
        vbproject.add(namePanel);
        vbproject.add(tfName = new JTextField());
        vbproject.add(new JPanel());

        JPanel orgaPanel = new JPanel(new BorderLayout());
        orgaPanel.add(new JLabel(language.getText("organization")),
                BorderLayout.WEST);
        vbproject.add(orgaPanel);
        vbproject.add(tfOrganization = new JTextField());
        vbproject.add(new JPanel());

        tfWebLink = new JTextField();
        JButton bWeb = new TestGanttRolloverButton(new ImageIcon(getClass()
                .getResource("/icons/web_16.gif")));
        bWeb.setToolTipText(GanttProject.getToolTip(language
                .getText("openWebLink")));
        bWeb.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                // link to open the web link
                if (!BrowserControl.displayURL(tfWebLink.getText())) {
                    GanttDialogInfo gdi = new GanttDialogInfo(null,
                            GanttDialogInfo.ERROR, GanttDialogInfo.YES_OPTION,
                            language.getText("msg4"), language.getText("error"));
                    gdi.show();
                }
            }
        });

        JPanel webPanel = new JPanel(new BorderLayout());
        webPanel
                .add(new JLabel(language.getText("webLink")), BorderLayout.WEST);
        webPanel.add(bWeb, BorderLayout.EAST);
        vbproject.add(webPanel);
        vbproject.add(tfWebLink);
        vbproject.add(new JPanel());

        JPanel descrPanel = new JPanel(new BorderLayout());
        descrPanel.add(new JLabel(language.getText("shortDescription")),
                BorderLayout.WEST);
        vbproject.add(descrPanel);
        taDescr = new JTextArea(12, 25);
        taDescr.setLineWrap(true);
        taDescr.setWrapStyleWord(true);
        JScrollPane scpArea = new JScrollPane(taDescr);
        vbproject.add(scpArea);

        JPanel projectPanel = new JPanel(new BorderLayout());
        projectPanel.add(vbproject, BorderLayout.NORTH);
        vb.add(projectPanel);

View Full Code Here


        JPanel panel1 = new JPanel();
        JPanel panel2 = new JPanel();
        JPanel panel3 = new JPanel();

        Box vb1 = Box.createVerticalBox();

        /*
         * bWork = new JRadioButton("Working Day", new
         * ImageIcon(getClass().getResource("/icons/working_day_16.gif")),
         * true); bNonWork = new JRadioButton("Working Day", new
         * ImageIcon(getClass().getResource("/icons/non_working_day_16.gif")),
         * false);
         */

        bWork = new JRadioButton("Working Day", true);
        bNonWork = new JRadioButton("Non-Working Day", false);

        /*
         * panel3.add(bWork, BorderLayout.WEST); panel3.add(bNonWork,
         * BorderLayout.EAST);
         */

        vb1.add(panelDate);
        vb1.add(bWork);
        vb1.add(bNonWork);

        // panel2.add(panelDate,BorderLayout.NORTH);
        // panel2.add(panel3,BorderLayout.SOUTH);

        panel1.add(new JScrollPane(listCalendar), BorderLayout.WEST);
View Full Code Here

        cancelButton = new JButton(language.getText("cancel"));
        cancelButton.addActionListener(this);

        southPanel.add(cancelButton);
        southPanel.setPreferredSize(new Dimension(600, 50));
        Box southBox = Box.createVerticalBox();
        southBox.add(new JSeparator());
        southBox.add(southPanel);
        mainPanel.add(southBox, BorderLayout.SOUTH);

        // set the ok button as default action for enter
        if (getRootPane() != null)
            getRootPane().setDefaultButton(okButton);

        // add the main panel into the dialog
        JPanel tmpPanel = new JPanel(new BorderLayout());
        tmpPanel.add(mainPanel, BorderLayout.CENTER);
        getContentPane().add(tmpPanel);

        // construct the sections
        constructSections();

        settingPanel = firstPanel;

        Box vb = Box.createVerticalBox();
        vb.add(new TopPanel("  " + settingPanel.getTitle(), settingPanel
                .getComment()));
        vb.add(settingPanel);
        settingPanel.initialize();

        // - add the settingPanel into the main Panel
        mainPanel2.add(vb, 0);
        mainPanel.add(mainPanel2);
View Full Code Here

        else if (sNode.equals(language.getText("license")))
            settingPanel = new AboutLicensePanel(appli);
        else if (sNode.equals(language.getText("library")))
            settingPanel = new AboutLibraryPanel(appli);

        Box vb = Box.createVerticalBox();
        vb.add(new TopPanel("  " + settingPanel.getTitle(), settingPanel
                .getComment()));
        vb.add(settingPanel);
        settingPanel.initialize();

        // - add the settingPanel into the main Panel
        mainPanel2.add(vb, 0);
        mainPanel2.repaint();
View Full Code Here

            }
        };
        servernameOption.addChangeValueListener(listener);
        usernameOption.addChangeValueListener(listener);
        passwordOption.addChangeValueListener(listener);
        Box result = Box.createVerticalBox();
        result.add(optionsPane);
        result.add(new JButton(testConnectionAction));
        return result;
    }
View Full Code Here

      }
        return myTabContentPanel;
    }

    private Component createButtonPanel() {
        Box buttonBar = Box.createHorizontalBox();
        TestGanttRolloverButton upButton = new TestGanttRolloverButton(myTreeFacade.getMoveUpAction());
        upButton.setTextHidden(true);
        buttonBar.add(upButton);
        //
        TestGanttRolloverButton downButton = new TestGanttRolloverButton(myTreeFacade.getMoveDownAction());
        downButton.setTextHidden(true);
        buttonBar.add(downButton);
        //
        JPanel buttonPanel = new JPanel(new BorderLayout());
        buttonPanel.add(buttonBar, BorderLayout.WEST);
        return buttonPanel;
    }
View Full Code Here

        JDialog result = new JDialog(myMainFrame, true);
        result.setTitle(title);
        final Commiter commiter = new Commiter();
        Action okAction = null;
        Action cancelAction = null;
        Box buttonBox = Box.createHorizontalBox();
        for (int i = 0; i < buttonActions.length; i++) {
            Action nextAction = buttonActions[i];
            JButton nextButton = null;
            if (nextAction instanceof OkAction) {
                nextAction = createOkAction(nextAction, result, commiter);
                okAction = nextAction;
                nextButton = new JButton(nextAction);
                result.getRootPane().setDefaultButton(nextButton);
            }
            if (nextAction instanceof CancelAction) {
                nextAction = createCancelAction(nextAction, result, commiter);
                cancelAction = nextAction;
                result.getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(
                        KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0),
                        nextAction.getValue(Action.NAME));
                result.getRootPane().getActionMap().put(
                        nextAction.getValue(Action.NAME), nextAction);
            }
            if (nextButton == null) {
                nextButton = new JButton(nextAction);
            }
            buttonBox.add(nextButton);
            if (i < buttonActions.length - 1) {
                buttonBox.add(Box.createHorizontalStrut(5));
            }
        }
        result.getContentPane().setLayout(new BorderLayout());
        result.getContentPane().add(content, BorderLayout.CENTER);
        //
View Full Code Here

        myGanttChart = ganttChart;
    }
    Component getComponent() {
      if (myTabContentPanel==null) {
          JPanel left = new JPanel(new BorderLayout());
          Box treeHeader = Box.createVerticalBox();
          GanttImagePanel but = new GanttImagePanel("big.png", 300,
                  42);
          treeHeader.add(but);
          left.add(treeHeader, BorderLayout.NORTH);
          left.add(myTaskTree, BorderLayout.CENTER);
          left.setPreferredSize(new Dimension(315, 600));
          left.setBackground(new Color(102, 153, 153));
 
View Full Code Here

        return myTabContentPanel;
       
    }
   
    private Component createButtonPanel() {
        Box buttonBar = Box.createHorizontalBox();
        //JToolBar buttonBar = new JToolBar();
        //buttonBar.setFloatable(false);
        TestGanttRolloverButton unindentButton = new TestGanttRolloverButton(myTreeFacade.getUnindentAction()) {
      public String getText() {
        return null;
      }       
        };
        buttonBar.add(unindentButton);
       
        TestGanttRolloverButton indentButton = new TestGanttRolloverButton(myTreeFacade.getIndentAction()) {
      public String getText() {
        return null;
      }                 
        };
        buttonBar.add(indentButton);
        //
        buttonBar.add(Box.createHorizontalStrut(3));
        //
        TestGanttRolloverButton upButton = new TestGanttRolloverButton(myTreeFacade.getMoveUpAction()) {
      public String getText() {
        return null;
      }                 
        };
        buttonBar.add(upButton);
        //
        TestGanttRolloverButton downButton = new TestGanttRolloverButton(myTreeFacade.getMoveDownAction()) {
      public String getText() {
        return null;
      }                 
        };
        buttonBar.add(downButton);
        //
        buttonBar.add(Box.createHorizontalStrut(8));
        Action linkAction = new LinkTasksAction(myProject.getTaskManager(), Mediator.getTaskSelectionManager(), myWorkbenchFacade);
        myTreeFacade.setLinkTasksAction(linkAction);
        TestGanttRolloverButton linkButton = new TestGanttRolloverButton(linkAction) {
      public String getText() {
        return null;
      }                 
        };
        buttonBar.add(linkButton);
        //
        Action unlinkAction = new UnlinkTasksAction(myProject.getTaskManager(), Mediator.getTaskSelectionManager(), myWorkbenchFacade);
        myTreeFacade.setUnlinkTasksAction(unlinkAction);
        TestGanttRolloverButton unlinkButton = new TestGanttRolloverButton(unlinkAction) {
      public String getText() {
        return null;
      }                 
        };
        buttonBar.add(unlinkButton);
        //
        JPanel buttonPanel = new JPanel(new BorderLayout());
        buttonPanel.add(buttonBar, BorderLayout.WEST);
        return buttonPanel;
    }
View Full Code Here

        super(owner, title, true);
    }

    private void create() {

        Box main     = Box.createHorizontalBox();
        Box labels   = Box.createVerticalBox();
        Box controls = Box.createVerticalBox();
        Box buttons  = Box.createHorizontalBox();
        Box whole    = Box.createVerticalBox();

        // (weconsultants@users) New code
        Box extra = Box.createHorizontalBox();

        main.add(Box.createHorizontalStrut(10));
        main.add(Box.createHorizontalGlue());
        main.add(labels);
        main.add(Box.createHorizontalStrut(10));
View Full Code Here

TOP

Related Classes of javax.swing.Box$Filler$AccessibleBoxFiller

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.