Article View: borland.public.jbuilder.java.swing
Article #11712Re: jdbCheckBox show colum name in text!
From: Jason Burton
Date: Wed, 21 Apr 1999 00:00
Date: Wed, 21 Apr 1999 00:00
19 lines
1544 bytes
1544 bytes
Carlos Javier Castro Pena <jcaspen@ittc.ukans.edu> wrote in message
news:3715128E.3ECF13A8@ittc.ukans.edu...
> I am using a jdbCheckBox that is linked to a dataset with .setDataSet()
> and .setColumnName(), to display the boolean result of a field of the
> database. The problem I am having is that the name of the column is
> displayed in the text that is at the right of the check box, as I were
> using a setText() method and I don't know how to avoid it. Is there a
> way yo correct this problem?
Based on what you're saying I would assume that the check box is using the
caption of the dataset column to which its attached. If I am not mistaken,
this defaults to the field name of the column. Try something like:
datasetYouAreUsingForCheckbox.getColumn(columnName).setCaption("captionYouWa
ntForCheckBox");
Hope this helps,
Jason
Technical Details
Message-ID:
<7fkv29$4tn6@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3715128E.3ECF13A8@ittc.ukans.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,b83aa5dcea94586c X-Google-Attributes: gid111d45,public X-Google-Thread: 158014,b83aa5dcea94586c X-Google-Attributes: gid158014,public From: "Jason Burton" <Jason.Burton@McLeodSoftware.com> Subject: Re: jdbCheckBox show colum name in text! Date: 1999/04/21 Message-ID: <7fkv29$4tn6@forums.borland.com> X-Deja-AN: 469184739 References: <3715128E.3ECF13A8@ittc.ukans.edu> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing,borland.public.jbuilder.java.database