tnt-ooo-tnt

pipe-demo-final

...@@ -64,9 +64,11 @@ class PngPane extends JPanel { ...@@ -64,9 +64,11 @@ class PngPane extends JPanel {
64 public PngPane() { 64 public PngPane() {
65 super(); 65 super();
66 ImageIcon image = new ImageIcon("./visualize.png"); 66 ImageIcon image = new ImageIcon("./visualize.png");
67 + JScrollPane pan = new JScrollPane();
67 JLabel label = new JLabel("", image, JLabel.CENTER); 68 JLabel label = new JLabel("", image, JLabel.CENTER);
69 + pan.setViewportView(label);
68 setLayout(new BorderLayout()); 70 setLayout(new BorderLayout());
69 - add(label, BorderLayout.CENTER); 71 + add(pan, BorderLayout.CENTER);
70 JLabel acc = new JLabel("accuracy: 98.12"); 72 JLabel acc = new JLabel("accuracy: 98.12");
71 add(acc,BorderLayout.NORTH); 73 add(acc,BorderLayout.NORTH);
72 } 74 }
......

11.6 KB | W: | H:

3.61 MB | W: | H:

  • 2-up
  • Swipe
  • Onion skin