• Post Reply Bookmark Topic Watch Topic
  • New Topic

List in jsk 1.4.0 beta!

 
Roy Ben Ami
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
has anyone tried to create a List object in jdk 1.4.0 beta?
for some reason i can't create it.
the comoiler doesnt recognize any of the constructors in List.
in other jdk's it compiles fine!
i also didnt find anything in the bugs databse at sun!
any idea guys? (and gals)

p.s
i mean the awt List, not the util one. and my code is just:
List x=new List();
written in a class that extends Frame (and yes i imported awt and all the other button and stuff works fine).
 
Roy Ben Ami
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
reposted.
any ideas people?
i actually need this vecause im a teacher, and i need in the next lesson for this to work (they just installed in the classes the 1.4 beta version).
grr..
 
Mark Fletcher
Ranch Hand
Posts: 897
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Ive installed the JDK1.4 release candidate on my Windows 2000 machine. I found the following code created an AWT List:

Hope that helps,
Mark
 
Roy Ben Ami
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wow!!!
thanks a lot Mark!
using your code i was able to filer my problem!
it is so unbelivable i feel stupid!!
apprently (and belive it or not it took me almsot 2 hours of kicking at the computer) in the current directory i was, 1 of the 100 classes there was a stupid List class that someone put there.
thats why it didnt recognize the real List in awt pakcage (although i used the appropriare long name etc) - it always seems to go to the one in the current directory.
anyway, thanks a lot, and im sorry to bother u people with this.
this is really frustrating (and to think i almost punched my monitor)
thanks again.
 
Mark Fletcher
Ranch Hand
Posts: 897
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Roy,
Glad to have been of help
Yee haw!
Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!