Package java.awt

Examples of java.awt.Panel$AccessibleAWTPanel


     * @return java.awt.Panel
     */
    private Panel getContentsPane() {
        if (iContentsPane == null) {
            try {
                iContentsPane = new Panel();
                iContentsPane.setName("ContentsPane");
                iContentsPane.setLayout(new BorderLayout());
                getContentsPane().add(getCommandButtonPanel(), "South");
                getContentsPane().add(getOptionenPanel(), "Center");
            } catch (Throwable iExc) {
View Full Code Here


     * @return java.awt.Panel
     */
    private Panel getMessageCommandPanel() {
        if (iMessageCommandPanel == null) {
            try {
                iMessageCommandPanel = new Panel();
                iMessageCommandPanel.setName("MessageCommandPanel");
                iMessageCommandPanel.setLayout(new FlowLayout());
                getMessageCommandPanel().add(getMessageClearLogButton(), getMessageClearLogButton().getName());
                getMessageCommandPanel().add(getMessageOkButton(), getMessageOkButton().getName());
            } catch (Throwable iExc) {
View Full Code Here

     * @return java.awt.Panel
     */
    private Panel getMessageContentPanel() {
        if (iMessageContentPanel == null) {
            try {
                iMessageContentPanel = new Panel();
                iMessageContentPanel.setName("MessageContentPanel");
                iMessageContentPanel.setLayout(new BorderLayout());
                iMessageContentPanel.setBackground(SystemColor.control);
                getMessageContentPanel().add(getMessageTextArea(), "Center");
                getMessageContentPanel().add(getMessageCommandPanel(), "South");
View Full Code Here

     * @return java.awt.Panel
     */
    private Panel getOptionenPanel() {
        if (iOptionenPanel == null) {
            try {
                iOptionenPanel = new Panel();
                iOptionenPanel.setName("OptionenPanel");
                iOptionenPanel.setLayout(new GridBagLayout());
                iOptionenPanel.setBackground(SystemColor.control);

                GridBagConstraints constraintsProjectLabel = new GridBagConstraints();
View Full Code Here

        instructionLabel = new Label("Please enter your user name and password.");
        add(instructionLabel, BorderLayout.NORTH);
    }

    private void createLoginFields() {
        final Panel form = new Panel(new GridLayout(2, 2, 6, 8)) {
            private static final long serialVersionUID = 1L;

            @Override
            public Insets getInsets() {
                return new Insets(12, 0, 6, 80);
            }
        };
        add(form, BorderLayout.CENTER);

        form.add(new Label("User name:", Label.RIGHT));
        form.add(user = new TextField());
        user.addKeyListener(this);

        form.add(new Label("Password:", Label.RIGHT));
        form.add(password = new TextField());
        password.addKeyListener(this);
        password.setEchoChar('*');
    }
View Full Code Here

        password.addKeyListener(this);
        password.setEchoChar('*');
    }

    private void createButtonsPanel() {
        final Panel buttons = new Panel(new FlowLayout(FlowLayout.RIGHT));
        add(buttons, BorderLayout.SOUTH);

        buttons.add(cancel = new Button(CANCEL_LABEL));
        cancel.addActionListener(this);
        cancel.addKeyListener(this);

        buttons.add(login = new Button(LOGIN_LABEL));
        login.addActionListener(this);
        login.addKeyListener(this);
    }
View Full Code Here

    /**
     *
     */
    private void addButtons() {
        final Panel p = new Panel();

        p.setLayout(new java.awt.GridLayout(1, 0, 10, 0));
        add(p, BorderLayout.SOUTH);
        Button b;

        p.add(b = new Button("Blank"));
        b.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                clearLog();
            }
        });

        // debug
        p.add(b = new Button("Classes"));
        b.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                listClasses();
            }
        });

        p.add(b = new Button("Cache"));
        b.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                listCachedObjects();
            }
        });

        p.add(b = new Button("C/Cache"));
        b.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                clearCache();
            }
        });

        // quit
        p.add(quit = new Button("Quit"));
        quit.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                quit();
            }
View Full Code Here

                setIconImage(image);
            }
        }

        setLayout(new BorderLayout(7, 7));
        final Panel tabPane = createTabPane();
        add(tabPane);
    }
View Full Code Here

        final Font font = new Font("Monospaced", Font.PLAIN, 11);
        textArea.setFont(font);
        tabPane.add("Center", textArea);
        field = textArea;

        final Panel buttons = new Panel();
        buttons.setLayout(new FlowLayout());
        tabPane.add(buttons, BorderLayout.SOUTH);

        // add buttons
        Button b = new java.awt.Button("Refresh");
        b.setFont(font);

        buttons.add(b);
        b.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                showDebugForPane();
            }
        });

        b = new java.awt.Button("Print...");
        b.setFont(font);

        buttons.add(b);
        b.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                DebugOutput.print("Debug " + tabPane.getName(), field.getText());
            }
        });

        b = new java.awt.Button("Save...");
        b.setFont(font);

        buttons.add(b);
        b.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                DebugOutput.saveToFile("Save details", "Debug " + tabPane.getName(), field.getText());
            }
        });

        b = new java.awt.Button("Copy");
        b.setFont(font);

        buttons.add(b);
        b.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                DebugOutput.saveToClipboard(field.getText());
            }
        });

        b = new java.awt.Button("Close");
        b.setFont(font);

        buttons.add(b);
        b.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                closeDialog();
            }
View Full Code Here

        setLayout(new GridLayout(2, 3, 10, 10));

        add(new Label("Exit Apache Isis?", Label.LEFT));

        add(new Panel());
        add(new Panel());
        add(new Panel());

        add(quit = new Button(QUIT_LABEL));
        quit.addActionListener(this);
        quit.addKeyListener(this);
View Full Code Here

TOP

Related Classes of java.awt.Panel$AccessibleAWTPanel

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.