mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Scrolled game log to top in win/lose screen.
This commit is contained in:
@@ -2,6 +2,7 @@ package forge.view.match;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Font;
|
||||
import java.awt.Point;
|
||||
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
@@ -145,6 +146,7 @@ public class ViewWinLose {
|
||||
|
||||
final JPanel pnlLog = new JPanel(new MigLayout("insets 0, wrap, ax center"));
|
||||
final FScrollPane scrLog = new FScrollPane(txtLog);
|
||||
scrLog.getViewport().setViewPosition(new Point(0, 0));
|
||||
scrLog.setBorder(null);
|
||||
pnlLog.setOpaque(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user