1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2025-01-21 21:31:32 +01:00

Make the background transparent on the news page view.

This commit is contained in:
sk89q 2015-02-20 01:38:42 -08:00
parent f4f406d9cf
commit b4926c0826

View File

@ -87,6 +87,7 @@ public final class WebpagePanel extends JPanel {
panel.setLayout(new WebpageLayoutManager());
documentView = new JEditorPane();
documentView.setOpaque(false);
documentView.setBorder(null);
documentView.setEditable(false);
documentView.addHyperlinkListener(new HyperlinkListener() {
@ -101,6 +102,7 @@ public final class WebpagePanel extends JPanel {
});
JScrollPane scrollPane = new JScrollPane(documentView);
scrollPane.setOpaque(false);
panel.add(scrollPane, new Integer(1));
scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);