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:
parent
f4f406d9cf
commit
b4926c0826
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user