File tree Expand file tree Collapse file tree 5 files changed +13
-11
lines changed
src/com/inverseinnovations/VisualMALSignatureDesigner Expand file tree Collapse file tree 5 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 22<classpath >
33 <classpathentry kind =" src" path =" src" />
44 <classpathentry kind =" con" path =" org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7" />
5- <classpathentry kind =" lib" path =" lib/MSDlite.jar" />
5+ <classpathentry kind =" lib" path =" lib/MSDlite.jar" sourcepath = " /MAL Signature Designer Lite/src " />
66 <classpathentry kind =" output" path =" bin" />
77</classpath >
Original file line number Diff line number Diff line change 2323import javax .swing .JPanel ;
2424import javax .swing .JScrollPane ;
2525import javax .swing .JTabbedPane ;
26+ import javax .swing .JTextArea ;
2627import javax .swing .ListSelectionModel ;
2728import javax .swing .SwingUtilities ;
2829import javax .swing .WindowConstants ;
@@ -56,15 +57,16 @@ public void run(){
5657 JMenuItem menuItem = new JMenuItem ("Generate Script" );
5758 menuItem .addActionListener (new ActionListener (){
5859 public void actionPerformed (ActionEvent e ){
59- System .out .println (blocks .getRootNode ().createScript (null ));
60- }
61- });
62- menu .add (menuItem );
60+ final JDialog d = new JDialog (blockFrame , "MSD Script" , true );
6361
64- menuItem = new JMenuItem ("Move Down" );
65- menuItem .addActionListener (new ActionListener (){
66- public void actionPerformed (ActionEvent e ){
67- blocks .moveNodeDown ();
62+ JTextArea textArea = new JTextArea (20 , 100 );
63+ JScrollPane textscrollPane = new JScrollPane (textArea );
64+ textArea .setEditable (false );
65+ textArea .setText (blocks .getRootNode ().createScript (null ));
66+ d .getContentPane ().add (textscrollPane , BorderLayout .CENTER );
67+
68+ d .pack ();
69+ d .setVisible (true );
6870 }
6971 });
7072 menu .add (menuItem );
Original file line number Diff line number Diff line change @@ -144,6 +144,6 @@ public String createScript(String filteronly){
144144 * @return
145145 */
146146 public String generateScript (){
147- return null ;
147+ return "" ;
148148 }
149149}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public Main(){
2323
2424 //just testing stuff here
2525 try {
26- Thread .sleep (300 );
26+ Thread .sleep (400 );
2727 } catch (InterruptedException e ) {}
2828 //sig.addBackground("#FF33FF"); //Place a black background(honestly not needed)
2929
You can’t perform that action at this time.
0 commit comments