Re: mySQL Database to a TextArea?
From: Lee Fesperman (firstsql_at_ix.netcom.com)
Date: 08/26/04
- Next message: Frank Bates: "Re: Newbie MySQL question: how to retrieve latest entry from a history of entries?"
- Previous message: Lee Fesperman: "Re: datasource without JNDI?"
- In reply to: Rich Wahl: "Re: mySQL Database to a TextArea?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 26 Aug 2004 02:52:47 GMT
Rich Wahl wrote:
>
> Lee Fesperman <firstsql@ix.netcom.com> wrote in message news:<412BD897.19FE@ix.netcom.com>...
> > Rich Wahl wrote:
> > >
> > > I have a little program here that uses JDBC to connect to a mySQL
> > > server. (Doesnt connect remotely yet :) ill cross that bridge when I
> > > get there, still new to sql servers and if everyone needs a user/psw
> > > or whatnot).
> > >
> > > My question is as follows, Is there a way that I can 'import' the
> > > formatting of a SQL output (with all the plus's and auto formatting of
> > > columns to accomodate the largest name/number in that column. As of
> > > now, I just have a Label above a TextArea and have the inputs being
> > > read and a constant format as its outputted. (Using tabs and spaces)
> > > But it looks very sloppy, as not all names or values are the same
> > > length.
> >
> > Use a fixed-width font (monospaced) and space filling in the TextArea.
>
> That wouldnt doesnt work since the names and values I will be reading
> in from the Database are all of different lengths.
Your description was vague, so I gave a solution putting everything in a single
TextArea using space filling to line columns up. That will work!
> Or is there a way to have a text area start at a exact position? I
> havent done much work with formatting within a textarea...
Perhaps, you should try your question on comp.lang.java.gui, because it is not actually
database related.
-- Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com) ============================================================== * The Ultimate DBMS is here! * FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)
- Next message: Frank Bates: "Re: Newbie MySQL question: how to retrieve latest entry from a history of entries?"
- Previous message: Lee Fesperman: "Re: datasource without JNDI?"
- In reply to: Rich Wahl: "Re: mySQL Database to a TextArea?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|