Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2196
| From | "Daniel Gee" <daniel.gee@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Is it possible to create |
| Message-ID | <1186379983.100849.4490@m37g2000prh.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| Date | 2011-04-27 15:37 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui I'm trying to make a JFrame application that emulates an 80 by 24 terminal with fixed width font (for displaying a Roguelike game). But around the terminal part, I'd like to be able to place other components as well (list of items held, etc). I'm not very experienced with Swing and the best I've been able to manage is a JFrame that isn't resizeable holding single JTextArea. If I make it so the JFrame is of just the right size to fit 80 by 24 characters along with a JMenuBar at the top, then things come out looking right. The problem is, if I ever try to put any more components into the same JFrame, I'm unable to control their size interacting with the JTextArea. Or even, I can't get the JTextArea to stick to it's preferred size if I make the JFrame resizeable and then expand it a bit. I suspect this has to do with the LayoutManager, but I don't really know much about them other than the basics of GridLayout and BorderLayout. I tried using a SplitPane but they also seemed to use relative positioning like everything else, which isn't much help. Is what I'm after possible? Do I just need a different approach? --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Next in thread | Find similar | Unroll thread
Is it possible to create "Daniel Gee" <daniel.gee@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
Re: Is it possible to cre "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
Re: Is it possible to cre "Daniel Gee" <daniel.gee@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
Re: Is it possible to cre "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
csiph-web