Skip to content

Commit

Permalink
2Shot at #42
Browse files Browse the repository at this point in the history
  • Loading branch information
madflow committed Mar 3, 2014
1 parent a85c4d5 commit cbef15a
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void run() {
previewTextPane.setEditable(false);
previewTextPane.setContentType("text/html");
previewTextPane.setText("<html><head></head><body></body></html>");

previewScrollPane = new JScrollPane(previewTextPane);
previewScrollPane.setBorder(BorderFactory.createEmptyBorder());

Expand Down Expand Up @@ -195,10 +195,7 @@ public void run() {
previewDoc.setBase(sourceFile.toURL());
}
previewTextPane.setText(previewText);
previewScrollPane.getVerticalScrollBar()
.setValue(previewScrollPane.getVerticalScrollBar().getMinimum());
previewScrollPane.getHorizontalScrollBar()
.setValue(previewScrollPane.getHorizontalScrollBar().getMinimum());
previewTextPane.setCaretPosition(0);
}
});
}
Expand Down

0 comments on commit cbef15a

Please sign in to comment.