🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #11473

listview not displaying

#11473
From: Gary Klein
Date: Mon, 24 May 1999 00:00
34 lines
1622 bytes
I'm new to creating GUIs in Jbuilder. This is a very simple GUI which
will display status only with no interaction. Here is the main part of
the code.

private void jbInit() throws Exception {
    this.setSize(new Dimension(437, 466));
    this.setTitle("MultiVis Status");
    this.setEnabled(true);
    this.setVisible(true);
    client_list.addActionListener(new java.awt.event.ActionListener()
{
    public void actionPerformed(ActionEvent e) {
    client_list_actionPerformed(e);
}
});
this.add(panel,BorderLayout.NORTH);
panel.setSize(new Dimension(432, 461));
panel.setVisible(true);
panel.setEnabled(true);
panel.add(client_list);
client_list.setSize(new Dimension(400, 400));
client_list.setVisible(true);
client_list.setEnabled(true);
client_list.setBackground(new Color(46, 108, 108));
client_list.setLocale(new java.util.Locale("en", "GB", ""));
client_list.addItem("this is a test");
client_list.repaint();
//repaint();
}

It displays the Background color of the listview but not the first
element "this is a test". What am I missing?
Thanks for your help.
Gary
Technical Details
Message-ID: <7icngf$rgf1@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,633b423e77d3d665,start
X-Google-Attributes: gid111d45,public
From: "Gary Klein" <mrgaryk@yahoo.com>
Subject: listview not displaying
Date: 1999/05/24
Message-ID: <7icngf$rgf1@forums.borland.com>
X-Deja-AN: 481694856
Content-Transfer-Encoding: 7bit
Organization: Eolas
Content-Type: text/plain; charset="iso-8859-1"
Mime-Version: 1.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.swing