From ae1684b812690f39393923328f852bff80fafd16 Mon Sep 17 00:00:00 2001 From: Foone Debonte Date: Sun, 30 May 2010 03:13:45 +0300 Subject: [PATCH] Fix LuaPlugin console Fix LuaPlugin console not to resize itself to very thin line on some situations (especially when creating horizontal scrollbar). --- Changelog.utf8 | 1 + org/jpc/plugins/LuaPlugin.java | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changelog.utf8 b/Changelog.utf8 index e37fe94..47dfa1f 100644 --- a/Changelog.utf8 +++ b/Changelog.utf8 @@ -1,6 +1,7 @@ Changes since JPC-RR Release 10.9: ================================== - Do immediate VGA output cycle on loadstate. +- Fix LuaPlugin console. Changes from JPC-RR Release 10.8 to JPC-RR Release 10.9: ======================================================== diff --git a/org/jpc/plugins/LuaPlugin.java b/org/jpc/plugins/LuaPlugin.java index 0224cb5..2532f2c 100644 --- a/org/jpc/plugins/LuaPlugin.java +++ b/org/jpc/plugins/LuaPlugin.java @@ -832,17 +832,20 @@ public class LuaPlugin implements ActionListener, Plugin window.add(panel); console = new JTextArea(25, 80); + console.setFont(new Font("Monospaced", Font.PLAIN, 12)); JScrollPane consoleScroller = new JScrollPane(console); console.setEditable(false); - c.fill = GridBagConstraints.HORIZONTAL; + c.fill = GridBagConstraints.BOTH; c.gridwidth = 5; c.gridx = 0; c.gridy = 0; + c.weighty = 1; panel.add(consoleScroller, c); execLabel = new JLabel("Lua script"); c.fill = GridBagConstraints.NONE; c.weightx = 0; + c.weighty = 0; c.gridwidth = 1; c.gridx = 0; c.gridy = 1; -- 2.11.4.GIT