🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7367

Re: Current Date and ListBox formatting

#7367
From: Ralph Wieland
Date: Mon, 25 Jun 2001 03:17
29 lines
1823 bytes
Use java.util..Calendar.getInstance() to create a Calendar object with the
current date and time. The Calendar.get() method can provide the date and
time fields, however the java.text.DateFormat class does a better job of
formatting .

Sara Swartz <Sarabill@nospamHotmail.com> wrote in message
news:3b36757a$1_1@dnews...
> I have two newbie questions: The first is how do I get the current date to
> print on a report?
> The second question refers to formatting. I have a list box that I am
> populating from a vector I am using the form :
>      CountHolder.addElement (filename +"              "  + filer.list
> ().length );
>
> The problem is that each filename is a different length, and therefore the
> filer.list().length parts do not line up in the list box. The result looks
> like
>
> Anypoint    5
> Toy   3
> majorfoobar   18
>
> How can I format the Vector elements so that the numbers line up?
>
> Thanks!
> Sara
>
>
>
Technical Details
Message-ID: <3b36aba2_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3b36757a$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,ade243ff8b82314a
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-24 20:11:32 PST
Reply-To: "Ralph Wieland" <rwieland@rmii.com>
From: "Ralph Wieland" <rwieland@rmii.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3b36757a$1_1@dnews>
Subject: Re: Current Date and ListBox formatting
Date: Sun, 24 Jun 2001 21:17:40 -0600
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: 166.93.218.85
Message-ID: <3b36aba2_1@dnews>
X-Trace: dnews 993438626 166.93.218.85 (24 Jun 2001 20:10:26 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews