Strings from a database converting to variable names

From: Wes Batson (bane99_at_aol.com)
Date: 10/07/03


Date: 7 Oct 2003 07:44:21 -0700

I have a program that builds screens dynamically by getting all form
information from a database including size, position, and variable
names. I was wondering how I convert the names from a String in the
database to a variable name to be used in a declaration such as
JLabel <database String name> = new JLabel();

Any help is greatly appreciated.

Thanks.



Relevant Pages

  • Re: Dynamic JLabel display within a JPanel
    ... > I have a JPanel containing a JLabel which I use to display images. ... > entry in the database. ...
    (comp.lang.java.gui)
  • Re: vijaya
    ... the easiest is to put it into a JLabel via an ImageIcon. ... Read the API (you ... As to how to get the image from a database, the critical question is how did ...
    (comp.lang.java.programmer)
  • Re: Performance concerns in SPs and Tables
    ... would expect memory to be allocated on declaration; for a varchar, ... procedural code; database access code should be declarative. ...
    (microsoft.public.sqlserver.programming)
  • Re: Access 97 - global variables??
    ... you can define variables in the declaration ... You can use a database property to get them remembered ... my database makes an ODBC connection to a back-end DB2 database ... where on the query properties a ODBC connect ...
    (microsoft.public.access.queries)
  • Re: Syntax to connect to A2K DB with a DB password using VBA
    ... You stated that your code below works for a database without a password, ... there are a few lines of code missing from the code snippet you posted ... Tom Wickerath's explanation of why you should _always_ use "Option Explicit" ... I'd also like to point out that your declaration of "strDBName" (which, ...
    (microsoft.public.access.externaldata)