Mercurial > hg > charamega
changeset 2:1e64a109812f
Field has preferred size.
author | Mikhail Kryshen <mikhail@kryshen.net> |
---|---|
date | Sat, 14 Jul 2012 06:53:41 +0400 |
parents | fac1b8f35265 |
children | 1bbcb3d4302f |
files | src/net/kryshen/charamega/field.mirah src/net/kryshen/charamega/ui.mirah |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/net/kryshen/charamega/field.mirah Sat Jul 14 06:32:31 2012 +0400 +++ b/src/net/kryshen/charamega/field.mirah Sat Jul 14 06:53:41 2012 +0400 @@ -39,6 +39,7 @@ setOpaque true setDoubleBuffered true + setPreferredSize Dimension.new(790, 500) begin source = getClass.getResource("DejaVuSans.ttf").openStream
--- a/src/net/kryshen/charamega/ui.mirah Sat Jul 14 06:32:31 2012 +0400 +++ b/src/net/kryshen/charamega/ui.mirah Sat Jul 14 06:53:41 2012 +0400 @@ -99,8 +99,7 @@ frame.getContentPane.add ui frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE) - .setSize(800, 600) - .validate + .pack .setVisible(true) end end