|
@@ -287,7 +287,7 @@ public class MainView {
|
|
|
|
|
|
});
|
|
});
|
|
debug = new NiceButton( "debug" );
|
|
debug = new NiceButton( "debug" );
|
|
- debug.setLocation( 350, 10 );
|
|
|
|
|
|
+ debug.setLocation( 360, 10 );
|
|
debug.setMnemonic( KeyEvent.VK_D );
|
|
debug.setMnemonic( KeyEvent.VK_D );
|
|
debug.setToolTipText( "Show debug info (alt + d)" );
|
|
debug.setToolTipText( "Show debug info (alt + d)" );
|
|
debug.addActionListener( new ActionListener() {
|
|
debug.addActionListener( new ActionListener() {
|
|
@@ -299,7 +299,7 @@ public class MainView {
|
|
|
|
|
|
});
|
|
});
|
|
randomGraph = new NiceButton( "random" );
|
|
randomGraph = new NiceButton( "random" );
|
|
- randomGraph.setLocation( 350, 60 );
|
|
|
|
|
|
+ randomGraph.setLocation( 360, 60 );
|
|
randomGraph.setMnemonic( KeyEvent.VK_G );
|
|
randomGraph.setMnemonic( KeyEvent.VK_G );
|
|
randomGraph.setToolTipText( "Generate random graph (alt + g)" );
|
|
randomGraph.setToolTipText( "Generate random graph (alt + g)" );
|
|
randomGraph.addActionListener( new ActionListener() {
|
|
randomGraph.addActionListener( new ActionListener() {
|
|
@@ -599,7 +599,7 @@ public class MainView {
|
|
delayText = new JLabel( "Delay (ms)" );
|
|
delayText = new JLabel( "Delay (ms)" );
|
|
delayText.setBounds( 260, 10, 80, 20 );
|
|
delayText.setBounds( 260, 10, 80, 20 );
|
|
delay = new JTextField( "50" );
|
|
delay = new JTextField( "50" );
|
|
- delay.setBounds( 260, 30, 80, 20 );
|
|
|
|
|
|
+ delay.setBounds( 260, 30, 90, 20 );
|
|
delay.getDocument().addDocumentListener( new DocumentListener() {
|
|
delay.getDocument().addDocumentListener( new DocumentListener() {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -662,7 +662,7 @@ public class MainView {
|
|
|
|
|
|
});
|
|
});
|
|
save = new NiceButton( "save" );
|
|
save = new NiceButton( "save" );
|
|
- save.setLocation( 285, 60 );
|
|
|
|
|
|
+ save.setLocation( 295, 60 );
|
|
save.setMnemonic( KeyEvent.VK_S );
|
|
save.setMnemonic( KeyEvent.VK_S );
|
|
save.setToolTipText( "Save graph (alt + s)" );
|
|
save.setToolTipText( "Save graph (alt + s)" );
|
|
save.addActionListener( new ActionListener() {
|
|
save.addActionListener( new ActionListener() {
|
|
@@ -710,7 +710,7 @@ public class MainView {
|
|
} );
|
|
} );
|
|
pseudoTree.setRowHeight(15);
|
|
pseudoTree.setRowHeight(15);
|
|
JScrollPane treeView = new JScrollPane( pseudoTree );
|
|
JScrollPane treeView = new JScrollPane( pseudoTree );
|
|
- treeView.setBounds( 10, 110, 380, 380 );
|
|
|
|
|
|
+ treeView.setBounds( 10, 110, 390, 380 );
|
|
|
|
|
|
JTextArea debugText = new JTextArea();
|
|
JTextArea debugText = new JTextArea();
|
|
debugText.setFont( new Font( "Monospaced", Font.PLAIN, 12 ) );
|
|
debugText.setFont( new Font( "Monospaced", Font.PLAIN, 12 ) );
|
|
@@ -746,7 +746,7 @@ public class MainView {
|
|
frame.add( layne );
|
|
frame.add( layne );
|
|
JPanel menue = new JPanel();
|
|
JPanel menue = new JPanel();
|
|
menue.setLayout( null );
|
|
menue.setLayout( null );
|
|
- menue.setPreferredSize( new Dimension( 400, 500 ) );
|
|
|
|
|
|
+ menue.setPreferredSize( new Dimension( 410, 500 ) );
|
|
menue.add( stepForward );
|
|
menue.add( stepForward );
|
|
menue.add( stepForwardInto );
|
|
menue.add( stepForwardInto );
|
|
menue.add( stepForwardOut );
|
|
menue.add( stepForwardOut );
|
|
@@ -790,7 +790,7 @@ public class MainView {
|
|
combined.setSize( layne.getWidth() / 3, layne.getHeight() / 3 );
|
|
combined.setSize( layne.getWidth() / 3, layne.getHeight() / 3 );
|
|
combined.setLocation( layne.getWidth() / 3, layne.getHeight() / 3 );
|
|
combined.setLocation( layne.getWidth() / 3, layne.getHeight() / 3 );
|
|
|
|
|
|
- debugText.setText( algorithm.getDebugString() );
|
|
|
|
|
|
+ debugText.setText( algorithm.getDebugString().trim() );
|
|
layne.remove( pl );
|
|
layne.remove( pl );
|
|
layne.add( pl, 1 );
|
|
layne.add( pl, 1 );
|
|
frame.repaint();
|
|
frame.repaint();
|