@@ -0,0 +1,2503 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage config;%0A%0Aimport java.awt.Color;%0Aimport java.awt.Component;%0Aimport java.awt.Dimension;%0Aimport java.awt.Font;%0Aimport java.util.logging.Level;%0Aimport java.util.logging.Logger;%0Aimport javax.swing.BorderFactory;%0Aimport javax.swing.JFrame;%0Aimport javax.swing.JLabel;%0Aimport javax.swing.JPanel;%0Aimport javax.swing.border.EtchedBorder;%0A%0A/**%0A *%0A * @author evson%0A */%0Apublic abstract class SwingComponents %7B%0A    public static JPanel setPainelBody(JPanel painel) %7B%0A        try %7B%0A            painel.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED, Color.white, Color.black));%0A            painel.setPreferredSize(new Dimension(670, 325));%0A        %7D%0A        catch(NullPointerException ex) %7B%0A            Logger.getLogger(SwingComponents.class.getName()).log(Level.SEVERE, null, ex);%0A        %7D%0A        %0A        return painel;%0A    %7D%0A    %0A    public static JPanel setPainel(JPanel painel, Integer width, Integer height) %7B%0A        try %7B%0A            painel.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED, Color.white, Color.black));%0A            painel.setPreferredSize(new Dimension(width, height));%0A        %7D%0A        catch(NullPointerException ex) %7B%0A            Logger.getLogger(SwingComponents.class.getName()).log(Level.SEVERE, null, ex);%0A        %7D%0A        %0A        return painel;%0A    %7D%0A    %0A    public static JLabel setFrameTitulo(JLabel label) %7B%0A        try %7B%0A            label.setPreferredSize(new Dimension(146, 50));%0A            label.setFont(new Font(%22dialog%22, 1, 36));%0A        %7D%0A        catch(NullPointerException ex) %7B%0A            Logger.getLogger(SwingComponents.class.getName()).log(Level.SEVERE, null, ex);%0A        %7D%0A        %0A        return label;%0A    %7D%0A    %0A    public static JFrame setFrame(JFrame frame) %7B%0A        try %7B%0A            for (Component comp : frame.getContentPane().getComponents()) %7B%0A                if (comp.getName().equals(%22titulo%22)) %7B%0A                    SwingComponents.setFrameTitulo((JLabel) comp);%0A                %7D%0A                else if (comp.getName().equals(%22body%22)) %7B%0A                    SwingComponents.setPainelBody((JPanel) comp);%0A                %7D%0A            %7D%0A        %7D%0A        catch(NullPointerException ex) %7B%0A            Logger.getLogger(SwingComponents.class.getName()).log(Level.SEVERE, null, ex);%0A        %7D%0A        %0A        return frame;%0A    %7D%0A%7D%0A

Add Config Components for Swing