LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-27-2004, 08:32 AM   #1
linux_ub
Member
 
Registered: May 2004
Location: NY
Distribution: fedora core 1
Posts: 65

Rep: Reputation: 18
Controlling size of JLabel and JTextFields in Java


Hi

i have a predefined area in which i need to fit a JLabel and JTextField. JLabel has some text as its label and JTextField will allow users to enter text.

wht i need is to dynamically control the size of JLabel and JTextField as in .. if the total size is say 100, JLabel should occupy only the space required by it to display the label and the remaining space should be occupied by the JTextField. how can i do this ... ne ideas ???

thanks for ur help
 
  


Reply



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
using CSS to format HTML in a Java - JLabel caged Programming 1 09-26-2005 01:17 AM
[JAVA - JLabel] executing a method based on contents of the variable linux_ub Programming 1 08-12-2004 09:50 AM
java, rectangle size issues. exodist Programming 1 03-13-2004 04:48 PM
Controlling pipe buffer size in C shunker Programming 4 01-10-2004 06:52 PM
controlling image size for webcam using camserv donniev Linux - General 4 10-20-2003 12:38 AM

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

All times are GMT -5. The time now is 10:05 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