Package charvax.swing

Examples of charvax.swing.JScrollPane


            _linewrapstyle.setEnabled(false);
            _linewrapstyle.addItemListener(this);
            northpan.add(_linewrapstyle);

            _textarea = new JTextArea("Contents of the JTextArea...", 8, 50);
            JScrollPane scrollpane = new JScrollPane(_textarea);
            scrollpane.setViewportBorder(new TitledBorder("Text Area"));

            add(northpan, BorderLayout.NORTH);
            add(scrollpane, BorderLayout.SOUTH);
        }
View Full Code Here


            _vehicleList = new JList(model);
            _vehicleList.setVisibleRowCount(5);
            _vehicleList.setColumns(columns);
            _vehicleList.addListSelectionListener(this);
            JScrollPane scrollpane = new JScrollPane(_vehicleList);
            scrollpane.setViewportBorder(new TitledBorder("Vehicles"));
            add(scrollpane, BorderLayout.WEST);

            _selectionMode = new JCheckBox("Selection Mode = Multiple");
            _selectionMode.addItemListener(this);
View Full Code Here

                "Sweden"};
        _countryList = new JList(countries);
        _countryList.setVisibleRowCount(6);
        _countryList.setColumns(12);
        _countryList.addListSelectionListener(this);
        JScrollPane scrollpane = new JScrollPane(_countryList);
        TitledBorder viewportBorder = new TitledBorder("Countries");
        scrollpane.setViewportBorder(viewportBorder);
        centerpan.add(scrollpane, gbc);

        JPanel southpan = new JPanel();
        JButton okButton = new JButton("OK");
        okButton.addActionListener(this);
View Full Code Here

        };
        _table.setPreferredScrollableViewportSize(new Dimension(30, 5));
        //_table.setValueAt("Yellow", 5, 2);
        //_table.setValueAt("Red", 7, 4);
        //_table.setValueAt("Magenta", 1, 5);
        JScrollPane scrollPane = new JScrollPane(_table);
        TitledBorder border = new TitledBorder(new LineBorder(Color.cyan));
        border.setTitle("The Heavenly Bodies");
        scrollPane.setViewportBorder(border);
        //  scrollPane.setSize(25, 6);
        centerpan.add(scrollPane);

        return centerpan;
    }
View Full Code Here

            messagePanel.add(bottomLabel);

            cp.add(messagePanel, BorderLayout.SOUTH);

            editor = new JTextArea(example, 8, 75);
            JScrollPane scrollEditor = new JScrollPane(editor);
            scrollEditor.setViewportBorder(new TitledBorder("Beanshell Editor"));

            output = new JTextArea("BSH output", 7, 75);
            output.setLineWrap(true);

            JScrollPane scrollOutput = new JScrollPane(output);
            scrollOutput.setViewportBorder(new TitledBorder("Beanshell Output"));

            bshPanel.setLayout(new BorderLayout());
            bshPanel.add(scrollEditor, BorderLayout.NORTH);
            bshPanel.add(scrollOutput, BorderLayout.SOUTH);
            cp.add(bshPanel, BorderLayout.CENTER);
View Full Code Here

        panel.setLayout(new BorderLayout());
        textArea = new JTextArea("", 19, 76);
        textArea.setForeground(Color.cyan);
        border = new TitledBorder("");
        border.setTitleColor(Color.cyan);
        JScrollPane sp = new JScrollPane(textArea);
        sp.setViewportBorder(border);
        sp.setForeground(Color.cyan);
        panel.add(sp, BorderLayout.CENTER);
        directory = (String) AccessController.doPrivileged(new GetPropertyAction("user.dir"));
        if (file != null) {
            Boolean exists = AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
                public Boolean run() {
View Full Code Here

            }
        });

        jlist.setColumns(cols - 2);

        scrollPane = new JScrollPane(jlist);
        this.add(scrollPane);
    }
View Full Code Here

TOP

Related Classes of charvax.swing.JScrollPane

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.