Example usage for javax.swing.border BevelBorder LOWERED

List of usage examples for javax.swing.border BevelBorder LOWERED

Introduction

In this page you can find the example usage for javax.swing.border BevelBorder LOWERED.

Prototype

int LOWERED

To view the source code for javax.swing.border BevelBorder LOWERED.

Click Source Link

Document

Lowered bevel type.

Usage

From source file:us.paulevans.basicxslt.BasicXSLTFrame.java

/**
 * Builds the south panel/*from   w w w  . j  a  v  a  2  s  .  c  o m*/
 * @return
 */
private JPanel buildSouthPanel() {

    JPanel transformBtnPanel;
    JPanel footerPanel;
    JPanel southPanel;
    JPanel panel;
    JLabel label;
    Font footerPanelFont;
    Font footerPanelFontBold;

    transformBtnPanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
    transformBtnPanel.add(
            transformBtn = new JButton(stringFactory.getString(LabelStringFactory.MAIN_FRAME_TRANSFORM_BTN)));
    transformBtnPanel
            .add(exitBtn = new JButton(stringFactory.getString(LabelStringFactory.MAIN_FRAME_EXIT_BTN)));

    footerPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
    southPanel = new JPanel(new BorderLayout());
    southPanel.add(transformBtnPanel, BorderLayout.CENTER);
    southPanel.add(footerPanel, BorderLayout.SOUTH);
    footerPanelFont = new Font("arial", Font.PLAIN, 12);
    footerPanelFontBold = new Font("arial", Font.BOLD, 12);
    footerPanel.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));

    panel = new JPanel(new FlowLayout(FlowLayout.LEFT));
    panel.add(label = new JLabel(stringFactory.getString(LabelStringFactory.MAIN_FRAME_CURRENT_CONFIGURATION)));
    label.setFont(footerPanelFontBold);
    label.setForeground(Color.BLUE);
    panel.add(currentConfigLabel = new JLabel(userPrefs.getConfiguration()));
    currentConfigLabel.setFont(footerPanelFont);
    footerPanel.add(panel);

    panel = new JPanel(new FlowLayout(FlowLayout.LEFT));
    panel.add(label = new JLabel(stringFactory.getString(LabelStringFactory.MAIN_FRAME_TOTAL_TRANSFORM_TIME)));
    label.setFont(footerPanelFontBold);
    label.setForeground(Color.BLUE);
    panel.add(transformTimeLabel = new JLabel(lastTotalTransformTime + " "
            + stringFactory.getString(LabelStringFactory.MAIN_FRAME_MILLISECONDS_ABBREVIATION)));
    transformTimeLabel.setFont(footerPanelFont);
    footerPanel.add(panel);

    transformTimeLabel.setFont(footerPanelFont);
    footerPanel.add(new JLabel(""));
    footerPanel.add(new JLabel(""));
    transformBtn.addActionListener(this);
    exitBtn.addActionListener(this);
    return southPanel;
}

From source file:wjhk.jupload2.policies.DefaultUploadPolicy.java

/**
 * @see wjhk.jupload2.policies.UploadPolicy#createStatusBar(javax.swing.JLabel,
 *      JUploadPanel)/*from ww w .j  a  v a  2 s  .  co m*/
 */
public JPanel createStatusBar(JLabel content, JUploadPanel mainPanel) {
    if (this.showStatusbar) {
        JPanel pstatus = new JPanel();
        pstatus.setLayout(new BorderLayout());
        pstatus.add(content, BorderLayout.CENTER);
        pstatus.setBorder(new BevelBorder(BevelBorder.LOWERED));
        return pstatus;
    }
    return null;
}