Can't get setSize to work

I can't get setSize to work, I'm trying it on a button and I have tried various layout managers and have even tried without a layout manager.

Is there anything at all I have to import or something?
I tried this: Dimension l=new Dimension(200,100);
          b1.setPreferedSize(l);
b1 is the button.
and it can't find the method setPreferedSize.

Similar Messages

Maybe you are looking for

  • CS3 Premiere error 0xc0000409 on boot-up no matter how many times I install

    It wasn't easy finding this forum place but anyway I hope you can help me out first off I use Windows XP and it is CS3 Premiere Pro I am talking about of the Master Suite, second off I am not English and because my error was displayed in Dutch I have

  • Travel adapter kit

    I am going to Thailand, Malaysia and Singapore.  I went into an Apple store and inquired about a travel adapter.  I was told that the Apple World Travel Adapter Kit would not be suitable for my destinations.  Is this correct?  What product should I b

  • Quicktime playback of .TOD files with Perian installed

    I recently purchased a JVC GZHD3 camcorder, and have had no problems playing the .TOD files in quicktime until I installed Perian 0.5 which I got from the apple website. Why did does it now say, the movie could not be opened, the movie contains and i

  • Illustrator / Indesign CS5 Crash after opening / Cant install CS6 Trials

    I was cleaning my computer of duplicate files the other day and must have accidentally deleted something important. When I went to open Illustrator it crashed immediately after opening, same thing goes for indesign, but not photoshop. Ive tried insta

  • Permissions for local (cd-rom) SWF movies, HELP!

    I made a flash movie which loads in een HTML file, my first movie loads different swf files. When i run de html/movie from a CD appears a security mesage from Flash 8, i've been reading some info about the permissions but wat i wanna know is how i ka