Esempio n. 1
0
 public void createDesiredBorder(JButton jbtn) {
   jbtn.setBorder(
       javax.swing.BorderFactory.createCompoundBorder(
           javax.swing.BorderFactory.createCompoundBorder(
               javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED),
               javax.swing.BorderFactory.createCompoundBorder(
                   javax.swing.BorderFactory.createMatteBorder(
                       2, 2, 2, 2, new java.awt.Color(0, 0, 0)),
                   javax.swing.BorderFactory.createBevelBorder(
                       javax.swing.border.BevelBorder.RAISED))),
           javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)));
 }
Esempio n. 2
0
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    jSplitPane1 = new javax.swing.JSplitPane();
    jPanel1 = new javax.swing.JPanel();
    m_jPanelLeft = new javax.swing.JScrollPane();
    m_jPanelRight = new javax.swing.JPanel();
    m_jPanelTitle = new javax.swing.JPanel();
    m_jTitle = new javax.swing.JLabel();
    m_jPanelContainer = new javax.swing.JPanel();

    setLayout(new java.awt.BorderLayout());

    jSplitPane1.setDividerLocation(200);

    jPanel1.setLayout(new java.awt.BorderLayout());
    jPanel1.add(m_jPanelLeft, java.awt.BorderLayout.CENTER);

    jSplitPane1.setLeftComponent(jPanel1);

    m_jPanelRight.setLayout(new java.awt.BorderLayout());

    m_jPanelTitle.setLayout(new java.awt.BorderLayout());

    m_jTitle.setFont(new java.awt.Font("SansSerif", 1, 18));
    m_jTitle.setBorder(
        javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0, java.awt.Color.darkGray),
            javax.swing.BorderFactory.createEmptyBorder(10, 10, 10, 10)));
    m_jPanelTitle.add(m_jTitle, java.awt.BorderLayout.NORTH);

    m_jPanelRight.add(m_jPanelTitle, java.awt.BorderLayout.NORTH);

    m_jPanelContainer.setLayout(new java.awt.CardLayout());
    m_jPanelRight.add(m_jPanelContainer, java.awt.BorderLayout.CENTER);

    jSplitPane1.setRightComponent(m_jPanelRight);

    add(jSplitPane1, java.awt.BorderLayout.CENTER);
  } // </editor-fold>//GEN-END:initComponents