Showing
2 changed files
with
3 additions
and
1 deletions
... | @@ -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 | } | ... | ... |
-
Please register or login to post a comment