Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.*;
- import java.awt.*;
- public class NFrame extends JFrame
- {
- public NFrame()
- {
- setLocation(50,100);
- setTitle("Este é NFrame ( um JFrame personalizado )");
- setSize(600,450);
- setUndecorated(true);
- getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
- getRootPane().setBorder(BorderFactory.createLineBorder(Color.red,3));
- setDefaultCloseOperation(EXIT_ON_CLOSE);
- }
- public static void main(String arg[])
- {
- new NFrame().setVisible(true);
- }
- }
Add Comment
Please, Sign In to add comment