2
Fork 0

[svn r261] added VE editor classpath and doc , made swing strech

This commit is contained in:
willemc 2007-08-02 04:48:34 +02:00
parent 848eb431d6
commit cb8d6bc334
7 changed files with 130 additions and 84 deletions

View file

@ -59,25 +59,21 @@ public class SwingTest extends TestCase {
// get GUI
JFrame frame = new JFrame();
frame.setTitle("Swing Vasc Test");
frame.setTitle("Vasc Test - Swing");
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frame.pack();
frame.setBounds(150,150,900,700);
frame.setLocationRelativeTo(null);
JPanel panel = new JPanel();
frame.add(panel);
// define redering
JPanel panel = new JPanel();
SwingVascViewRenderer render = new SwingVascViewRenderer(panel);
frame.add(panel);
// render
render.renderView(SWTTest.getVascTable());
render.renderView(TestTable.getVascTable());
// view
frame.getContentPane().validate();
frame.pack();
frame.setVisible(true);
frame.repaint();
while (frame.isVisible()) {
Thread.sleep(1000);