Package shared.layout

Examples of shared.layout.JGridBagPanel.addComponent()


                updateSizeField();
            }
        });
        row--;
       
    panel.addComponent(new JLabel(Main.getString("export_label_size")), 1, row, GridBagConstraints.WEST, new Insets(5, 10, 0, 0));
        row++;
    panel.addComponent(m_sizeField = new JTextField(13), GridBagConstraints.RELATIVE, row, GridBagConstraints.WEST, new Insets(2, 10, 10, 0));
        m_sizeField.setEditable(false);

        updateSizeField();
View Full Code Here


        });
        row--;
       
    panel.addComponent(new JLabel(Main.getString("export_label_size")), 1, row, GridBagConstraints.WEST, new Insets(5, 10, 0, 0));
        row++;
    panel.addComponent(m_sizeField = new JTextField(13), GridBagConstraints.RELATIVE, row, GridBagConstraints.WEST, new Insets(2, 10, 10, 0));
        m_sizeField.setEditable(false);

        updateSizeField();

        if (m_mimeType.equals("image/jpeg"))
View Full Code Here

        data.setIsSeparator(true);
        m_listModel.add(0, data);

        JScrollPane scrollPane = new JScrollPane();
        scrollPane.getViewport().add(list);
        panelToolTip.addComponent(new JLabel(Main.getString("settings_label_tooltipfield")), 0, row, GridBagConstraints.WEST, new Insets(0, 0, 0, 0), GridBagConstraints.REMAINDER, 1);
        row++;
        panelToolTip.addComponent(scrollPane, 0, row, GridBagConstraints.WEST, new Insets(0, 0, 0, 0), 1, 2);

        final JButton upButton = new JButton("\u2191");
        Font font = upButton.getFont().deriveFont(Font.BOLD, (float)24.0);
View Full Code Here

        JScrollPane scrollPane = new JScrollPane();
        scrollPane.getViewport().add(list);
        panelToolTip.addComponent(new JLabel(Main.getString("settings_label_tooltipfield")), 0, row, GridBagConstraints.WEST, new Insets(0, 0, 0, 0), GridBagConstraints.REMAINDER, 1);
        row++;
        panelToolTip.addComponent(scrollPane, 0, row, GridBagConstraints.WEST, new Insets(0, 0, 0, 0), 1, 2);

        final JButton upButton = new JButton("\u2191");
        Font font = upButton.getFont().deriveFont(Font.BOLD, (float)24.0);
        upButton.setFont(font);
        upButton.addActionListener(new ActionListener()
View Full Code Here

                    JCheckListData data = (JCheckListData)m_listModel.get(index);
                    upButton.setEnabled(index > 1 || data.isSeparator() ? true : false);
                }
            }
        });
        panelToolTip.addComponent(upButton, 1, row, GridBagConstraints.SOUTHWEST, new Insets(0, 10, 0, 0), 1, 1, 0, 0.5);
        final JButton downButton = new JButton("\u2193");
        downButton.setFont(font);
        downButton.addActionListener(new ActionListener()
        {
            public void actionPerformed(ActionEvent ev)
View Full Code Here

                    downButton.setEnabled(index == m_listModel.getSize() - 1 || (index == m_listModel.getSize() - 2 && !data.isSeparator()) ? false : true);
                }
            }
        })
        row++;
        panelToolTip.addComponent(downButton, 1, row, GridBagConstraints.NORTHWEST, new Insets(3, 10, 0, 0), 1, 1, 0, 0.5);

        row++;
        panelToolTip.addComponent(new JLabel(Main.getString("settings_label_tooltipdismissdelay")), 0, row, GridBagConstraints.WEST, new Insets(10, 0, 5, 0), GridBagConstraints.REMAINDER, 1);
        row++;
        m_spinner_ToolTips = new JNumberSpinner(new SpinnerNumberModel(20, 0, 60, 1));
View Full Code Here

        })
        row++;
        panelToolTip.addComponent(downButton, 1, row, GridBagConstraints.NORTHWEST, new Insets(3, 10, 0, 0), 1, 1, 0, 0.5);

        row++;
        panelToolTip.addComponent(new JLabel(Main.getString("settings_label_tooltipdismissdelay")), 0, row, GridBagConstraints.WEST, new Insets(10, 0, 5, 0), GridBagConstraints.REMAINDER, 1);
        row++;
        m_spinner_ToolTips = new JNumberSpinner(new SpinnerNumberModel(20, 0, 60, 1));
        m_spinner_ToolTips.setValue(Main.m_settings.getToolTipDismissDelay()/1000);
        JPanel panelBox = new JPanel();
        panelBox.setLayout(new BoxLayout(panelBox, BoxLayout.X_AXIS));
View Full Code Here

        JLabel ttSec = new JLabel(Main.getString("settings_label_tooltipdismissdelay_sec"));
        ttSec.setAlignmentY(Component.CENTER_ALIGNMENT);
        panelBox.add(Box.createRigidArea(new Dimension(5, 0)));
        panelBox.add(ttSec);

        panelToolTip.addComponent(panelBox, 0, row, GridBagConstraints.WEST, new Insets(0, 0, 0, 0));

        row++;
        panelBox = new JPanel();
        panelBox.setLayout(new BoxLayout(panelBox, BoxLayout.X_AXIS));
View Full Code Here

        m_checkBox_tooltipTable = new JCheckBox(Main.getString("settings_checkbox_tooltiptable"), Main.m_settings.isToolTipTable());
        panelBox.add(m_checkBox_tooltipTable);

        row++;
        m_checkBox_tooltipBold = new JCheckBox(Main.getString("settings_checkbox_tooltipbold"), Main.m_settings.isToolTipBold());
        panelToolTip.addComponent(m_checkBox_tooltipBold, 1, row, GridBagConstraints.WEST, new Insets(0, 0, 0, 0), GridBagConstraints.REMAINDER, 1);
        panelBox.add(Box.createRigidArea(new Dimension(15, 0)));
        panelBox.add(m_checkBox_tooltipBold);
        panelToolTip.addComponent(panelBox, 0, row, GridBagConstraints.WEST, new Insets(10, 0, 0, 0), GridBagConstraints.REMAINDER, 1);

        // Slideshow
View Full Code Here

        row++;
        m_checkBox_tooltipBold = new JCheckBox(Main.getString("settings_checkbox_tooltipbold"), Main.m_settings.isToolTipBold());
        panelToolTip.addComponent(m_checkBox_tooltipBold, 1, row, GridBagConstraints.WEST, new Insets(0, 0, 0, 0), GridBagConstraints.REMAINDER, 1);
        panelBox.add(Box.createRigidArea(new Dimension(15, 0)));
        panelBox.add(m_checkBox_tooltipBold);
        panelToolTip.addComponent(panelBox, 0, row, GridBagConstraints.WEST, new Insets(10, 0, 0, 0), GridBagConstraints.REMAINDER, 1);

        // Slideshow
        row = 0;
        panelSlideShow.addComponent(new JLabel(Main.getString("settings_label_slideshowtimer")), 0, row, GridBagConstraints.WEST, new Insets(10, 0, 0, 0), GridBagConstraints.REMAINDER, 1);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.