Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ik klik op dit scriptje:
- java ProcessenApplication
- pause
- //gebruik -help voor opties en -Xlint om decrepated te bekijken
- Deze roept dus deze script op:
- import javax.swing.UIManager;
- import java.awt.*;
- import java.awt.event.*;
- import java.util.*;
- import java.util.Date;
- import java.io.*;
- import javax.swing.*;
- public class ProcessenApplication
- {
- boolean packFrame = false;
- //Construct the application
- public ProcessenApplication()
- {
- Frame1 frame = new Frame1();
- //Validate frames that have preset sizes
- //Pack frames that have useful preferred size info, e.g. from their layout
- if (packFrame)
- frame.pack();
- else
- frame.validate();
- frame.setVisible(true);
- }
- //Main method
- public static void main(String[] args)
- {
- try
- {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- }
- catch(Exception e)
- {
- }
- new ProcessenApplication();
- }
- //===========================================================================
- public class Frame1 extends JFrame
- {
- private static final long serialVersionUID = 6722596973205039761L;
- //Construct the frame
- public Frame1()
- {
- try
- {
- jbInit();
- mijnInit();
- }
- catch(Exception e)
- {
- e.printStackTrace();
- }
- }
- //Component initialization
- private void jbInit() throws Exception
- {
- this.getContentPane().setLayout(null);
- this.setSize(new Dimension(300, 100));
- }
- //Component initialization
- private void mijnInit() throws Exception
- {
- }
- }
- }
- Frame file Script:
- import java.awt.*;
- import java.awt.event.*;
- import java.util.*;
- import java.util.Date;
- import java.io.*;
- import javax.swing.*;
- public class Frame11 extends JFrame
- {
- //Construct the frame
- public Frame11()
- {
- try
- {
- jbInit();
- mijnInit();
- }
- catch(Exception e)
- {
- e.printStackTrace();
- }
- }
- //Component initialization
- private void jbInit() throws Exception
- {
- this.getContentPane().setLayout(null);
- this.setSize(new Dimension(1300, 300));
- }
- //Component initialization
- private void mijnInit() throws Exception
- {
- }
- }
- and then i have a class file from this and the frame file.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement