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


Groups > comp.lang.java.programmer > #28224

Re: Java Swing text as a grid?

Newsgroups comp.lang.java.programmer
Date 2014-04-25 02:13 -0700
References <8c3ea48c-26d5-4ef8-869b-08f46023b953@googlegroups.com> <2rugl9tj85fg9ok4oucnapebf4lq4n44ur@4ax.com>
Message-ID <d1f48bad-ba8a-46ca-8cf9-121b99cfa42f@googlegroups.com> (permalink)
Subject Re: Java Swing text as a grid?
From Rupert Smith <rupertlssmith@googlemail.com>

Show all headers | View raw


On Thursday, April 24, 2014 3:49:53 AM UTC+1, Roedy Green wrote:
> >Does anyone have any thoughts on how to create a simple text grid UI 
> >control with Swing? 
> 
> You could just have a GridBag layout of JTextAreas.

I hadn't thought of that. GridLayout I think you mean? with one character per grid cell. Would have been a quick and dirty way to get started.

> Most fun is to do it the way you would in AWT with a Canvas (JPanel in
> Swing).

Looks like that is the route I am taking. :-)

Rupert

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Java Swing text as a grid? rupertlssmith@googlemail.com - 2014-04-22 07:50 -0700
  Re: Java Swing text as a grid? markspace <markspace@nospam.nospam> - 2014-04-22 08:22 -0700
  Re: Java Swing text as a grid? Jeff Higgins <jeff@invalid.invalid> - 2014-04-22 11:45 -0400
    Re: Java Swing text as a grid? Jeff Higgins <jeff@invalid.invalid> - 2014-04-22 15:03 -0400
      Re: Java Swing text as a grid? Rupert Smith <rupertlssmith@googlemail.com> - 2014-04-23 00:56 -0700
  Re: Java Swing text as a grid? Roedy Green <see_website@mindprod.com.invalid> - 2014-04-23 19:49 -0700
    Re: Java Swing text as a grid? Rupert Smith <rupertlssmith@googlemail.com> - 2014-04-25 02:13 -0700
      Re: Java Swing text as a grid? Arne Vajhøj <arne@vajhoej.dk> - 2014-04-28 20:26 -0400

csiph-web