Article View: borland.public.jbuilder.java.language
Article #18305getting the JScrollPane from the JList
From: Alexander Anguiano
Date: Sat, 18 Jul 1998 00:00
Date: Sat, 18 Jul 1998 00:00
20 lines
990 bytes
990 bytes
if I have a Jlist inside a JScrollPane is there a way to get the JScrollPane
from the JList
have this
this.getContentPane().add(jScrollPane1, new XYConstraints(35, 101, 304,
128));
jScrollPane1.getViewport().add(jList1, null);
I am trying to pass only a JList to a method and have the method set the
ScrollPane
private JList listbox;
private JScrollPane scrollPane;
void setList(JList listbox) {
this.listbox= listbox;
this.scrollPane = JScrollPane (listbox.something)
}
Thanks
Technical Details
Message-ID:
<6oqtrb$bss@bgtnsc02.worldnet.att.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,78d9a893ae8e3c88,start X-Google-Attributes: gidf74b3,public From: "Alexander Anguiano" <AlexAnguiano@worldnet.att.net> Subject: getting the JScrollPane from the JList Date: 1998/07/18 Message-ID: <6oqtrb$bss@bgtnsc02.worldnet.att.net> X-Deja-AN: 372711826 Organization: AT&T WorldNet Services X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Newsgroups: borland.public.jbuilder.java.language