Package java.awt

Examples of java.awt.Panel


         addNotify();
         addWindowListener(new Close());
         setLayout(new BorderLayout());

         Panel p = new Panel(new GridLayout(3, 1));
         p.add(line1 = new Label());
         p.add(line2 = new Label());
         p.add(line3 = new Label());
         add("North", p);

         p = new Panel(new GridLayout(2, 1));
         p.add(new Label("Username:"));
         p.add(new Label("Password:"));
         add("West", p);
         p = new Panel(new GridLayout(2, 1));
         p.add(user = new TextField(30));
         p.add(pass = new TextField(30));
         pass.addActionListener(new Ok());
         pass.setEchoChar('*');
         add("East", p);

         GridBagLayout gb = new GridBagLayout();
         p = new Panel(gb);
         GridBagConstraints constr = new GridBagConstraints();
         Panel pp = new Panel();
         p.add(pp);
         constr.gridwidth = GridBagConstraints.REMAINDER;
         gb.setConstraints(pp, constr);
         constr.gridwidth = 1;
         constr.weightx = 1.0;
View Full Code Here


     * @return java.awt.Panel
     */
    private Panel getAboutCommandPanel() {
        if (iAboutCommandPanel == null) {
            try {
                iAboutCommandPanel = new Panel();
                iAboutCommandPanel.setName("AboutCommandPanel");
                iAboutCommandPanel.setLayout(new java.awt.FlowLayout());
                getAboutCommandPanel().add(getAboutOkButton(), getAboutOkButton().getName());
            } catch (Throwable iExc) {
                handleException(iExc);
View Full Code Here

     * @return java.awt.Panel
     */
    private Panel getAboutDialogContentPanel() {
        if (iAboutDialogContentPanel == null) {
            try {
                iAboutDialogContentPanel = new Panel();
                iAboutDialogContentPanel.setName("AboutDialogContentPanel");
                iAboutDialogContentPanel.setLayout(new java.awt.BorderLayout());
                getAboutDialogContentPanel().add(getAboutCommandPanel(), "South");
                getAboutDialogContentPanel().add(getAboutInfoPanel(), "Center");
            } catch (Throwable iExc) {
View Full Code Here

     * @return java.awt.Panel
     */
    private Panel getAboutInfoPanel() {
        if (iAboutInfoPanel == null) {
            try {
                iAboutInfoPanel = new Panel();
                iAboutInfoPanel.setName("AboutInfoPanel");
                iAboutInfoPanel.setLayout(new GridBagLayout());

                GridBagConstraints constraintsAboutTitleLabel = new GridBagConstraints();
                constraintsAboutTitleLabel.gridx = 0; constraintsAboutTitleLabel.gridy = 0;
View Full Code Here

     * @return java.awt.Panel
     */
    private Panel getCommandButtonPanel() {
        if (iCommandButtonPanel == null) {
            try {
                iCommandButtonPanel = new Panel();
                iCommandButtonPanel.setName("CommandButtonPanel");
                iCommandButtonPanel.setLayout(getCommandButtonPanelFlowLayout());
                iCommandButtonPanel.setBackground(SystemColor.control);
                iCommandButtonPanel.add(getReloadButton());
                iCommandButtonPanel.add(getBuildButton());
View Full Code Here

     * @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(),
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

            super(title);
            frame = this; // Make visible to ButtonHandler
            setSize(320,200);

            // Create a panel for the message itself
            Panel center = new Panel();
            center.add(new Label(message));

            // Create a panel for the 'OK' button
            Panel bottom = new Panel();
            Button okButton = new Button("   OK   ");
            okButton.addActionListener(new ButtonHandler());
            bottom.add(okButton);

            // Add the two panels to the window/frame
            add(center, BorderLayout.CENTER);
            add(bottom,BorderLayout.SOUTH);
View Full Code Here

TOP

Related Classes of java.awt.Panel

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.