I TRIED IT A LOT
i used "getFrame().setSize(x,y)" in netbeans to set size of my frameview object in netbeans.....but it's not working.

please help me

After you set the size call frame.revalidate(). It might be frame.validate() though. If you're expecting the actual thing to resize in the netbeans editor window, you're going to be disappointed. That resizes the frame in the running application. At least I think it works, it's been awhile since I've done swing though.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.