LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-06-2004, 03:36 PM   #1
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Rep: Reputation: 30
newbie java swing question... window size


im creating a swing GUI, but i want the size of the window to remain constant... im using gridBag layout... i have tried this.setSize(500, 500) but it doesnt help... also have tried to change the size of the panel... i understand how the layout managers are supposed to work, i have done gui's in TCL/TK... but how can i set the size of the window?? padding?? blank frames??? thanks
 
Old 10-07-2004, 10:17 AM   #2
dizzutch
Member
 
Registered: Sep 2004
Location: Worcester, MA USA
Distribution: Debian, Gentoo, Fedora FC2
Posts: 66

Rep: Reputation: 15
try getContentPane().setSize(x,y). something it's not always sure what 'this' is. Also check the java API at java.sun.com, there's a bunch of tutorials on swing and applications
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
a java-swing problem... shosh Programming 2 06-26-2009 05:38 AM
java swing JTextArea gauravbagga Programming 1 05-23-2005 04:34 AM
questions on my java/swing gui xviddivxoggmp3 Programming 6 07-19-2004 10:44 AM
Java help! Using Swing and Layouts Mega Man X Programming 7 02-05-2004 05:02 PM
Cannot Get Swing to work in a Java Applet? Checkers Linux - Software 0 03-17-2003 03:23 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration