Package charvax.swing

Examples of charvax.swing.JPanel


        return northpan;
    }

    private JPanel makeCenterPanel() {
        JPanel centerpan = new JPanel();
        centerpan.setBorder(new TitledBorder("Status"));
        centerpan.setLayout(new GridBagLayout());

        GridBagConstraints gbc = new GridBagConstraints();

        gbc.anchor = GridBagConstraints.EAST;
        centerpan.add(new JLabel("Focus lost by: "), gbc);

        gbc.gridy = 1;
        centerpan.add(new JLabel("Focus gained by: "), gbc);

        gbc.gridx = 1;
        gbc.gridy = 0;
        gbc.anchor = GridBagConstraints.EAST;
        centerpan.add(_focusLostBy, gbc);
        _focusLostBy.setEnabled(false);

        gbc.gridy = 1;
        centerpan.add(_focusGainedBy, gbc);
        _focusGainedBy.setEnabled(false);

        return centerpan;
    }
View Full Code Here


    private Editor(final File file) {
        super("JNote - JNode Text Editor");
        this.file = file;
        setBackground(Color.black);
        setForeground(Color.cyan);
        JPanel panel = (JPanel) getContentPane();
        setJMenuBar(createMenu());
        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() {
                    return file.exists();
View Full Code Here

    private CharvaCommander() {
        this._insets = new Insets(0, 0, 0, 0);
        setBackground(BACKGROUND_COLOR);
        setForeground(FOREGROUND_COLOR);
        JPanel content = (JPanel) getContentPane();
        new ButtonPanel();

        JPanel panel = new JPanel();
        content.add(panel, BorderLayout.CENTER);
        panel.setLayout(null);

        File startf = new File(".");
        String path = startf.getAbsolutePath();
        try {
            path = startf.getCanonicalPath();
        } catch (IOException e) {
            //ignore
        }

        leftPane = new Pane(38, 20);
        leftPane.setPath(path);
        leftPane.setLocation(0, 0);
        panel.add(leftPane);
        leftPane.label.setLocation(1, 22);
        panel.add(leftPane.label);

        rightPane = new Pane(38, 20);
        rightPane.setPath(path);
        rightPane.setLocation(40, 0);
        panel.add(rightPane);
        rightPane.label.setLocation(41, 22);
        panel.add(rightPane.label);

        setLocation(0, 0);
        setSize(80, 24);
        validate();
View Full Code Here

    private void initialize() {
        contentPane = (JPanel) getContentPane();
        setBackground(Color.black);
        setForeground(Color.cyan);
        contentPane.setLayout(new BorderLayout());
        JPanel northPanel = new JPanel();
        northPanel.setLayout(new FlowLayout());
        northPanel.add(getRootObjectPanel());
        northPanel.add(getPropertiesPane());
        contentPane.add(northPanel, BorderLayout.NORTH);
        contentPane.add(getResultPane(), BorderLayout.CENTER);
        getRootObjectPanel().fill();
    }
View Full Code Here

TOP

Related Classes of charvax.swing.JPanel

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.