TavernerPOS - Source Code
Clone:
git clone http://www.librarysmith.co.uk/tavernerPOS
Index
» tavernerPOS : Blob 761766 / .svn / pristine / 2d / 2d1dc6e912c12638ad3467291d40a4a7519632e2.svn-base
package com.floreantpos.util;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class PanelTester {
public static boolean pack;
public static int width;
public static int height;
public static void test(JPanel panel) {
JFrame frame = new JFrame();
frame.setContentPane(panel);
if(pack)
frame.pack();
else {
frame.setSize(width, height);
}
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
}
- Details
- Last Updated: Monday, 04 April 2016 02:04
- Hits: 35817319