🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: 'Identifier Expected' error

#1568
From: Tad Frysinger
Date: Mon, 13 Oct 2003 15:00
19 lines
1610 bytes
If you don't have the appropriate import statement (it isn't good enough 
to have just javax.swing.*, because the TreeSelectionModel is in the 
javax.swing.tree), you are going to have problems...

Tad Frysinger
[TeamB]

Nadeem Khan wrote:
> Hello,
> 
> I am new to both Java and JBuilder. While trying to compile a Swing application, I get the error 'identifier expected' at line 2 below:
> 
>  line 1: JTree tree = new JTree();
>  line 2: tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
> 
> Can anyone please explain what is wrong with my code.
> 
> THanks
> Nadeem
Technical Details
Message-ID: <3F8ABE27.7060601@earthlink.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f8a5522$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,b72e8ce4fcfa5e37
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-10-13 08:11:03 PST
Message-ID: <3F8ABE27.7060601@earthlink.net>
Date: Mon, 13 Oct 2003 09:00:55 -0600
From: Tad Frysinger <tfrysinger@earthlink.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: 'Identifier Expected' error
References: <3f8a5522$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 206.61.185.113
X-Trace: newsgroups.borland.com 1066057264 206.61.185.113 (13 Oct 2003 08:01:04 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail