Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2196

Is it possible to create

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Daniel Gee" <daniel.gee@THRWHITE.remove-dii-this>
Subject Is it possible to create
Message-ID <1186379983.100849.4490@m37g2000prh.googlegroups.com> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 25
Date Wed, 27 Apr 2011 15:37:44 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918664 96.60.20.240 (Wed, 27 Apr 2011 10:37:44 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:37:44 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:2196

Show key headers only | View raw


  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 | NextNext in thread | Find similar | Unroll thread


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