In your View-class, you could add a new main
, that would allow you to start just the View-class from Eclipse, to see how your components are looking.
Naturally, the limitation is, that there is no linking to PolyScope, so anything pulled from the API og the Contribution (i.e. dropdown list content, keyboards etc.) will not work.
I.e. add something like:
public static void main(String... args) {
int margin = 8;
Style style = new V5Style();
//Style style = new V3Style();
JPanel jPanel = new JPanel();
jPanel.setBorder(BorderFactory.createEmptyBorder(margin, margin, margin, margin));
new MyViewClass(null, style).buildUI(jPanel, null);
JFrame jFrame = new JFrame();
jFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
jFrame.add(jPanel);
jFrame.setPreferredSize(style.getInstallationNodeSize());
jFrame.setVisible(true);
jFrame.pack();
}