Solved

java gui - JTextField and Jlabel not displaying properly

Posted on 2001-08-08
3
482 Views
Last Modified: 2013-11-21
Hi everyone,
I am frustrated as usual while working on a java graphical app, this time I am using beans - and it's my first try at this, and i'm wondering if it might be part of my problem.

I have a driver named and a bean class at this address:
http://www.geocities.com/heylauryn/

and if you run the resume writer program, the beans (which contain a jlabel and a jtextfield) are not properly displaying.  when i first run the program, the "name" textfield is cut off until i start typing, then it's okay for a little while... In the last one, "Contact Information" gets cut off at "Cont" and yet sometimes the textfield is all there.  When I minimize this gui or click "build resume" and then click "edit resume", all three of the textfields get cut off.

Can someone help?  I could really use some help and in a jiffy if you can!
Thanks so much for anything,
Lauryn.

Please comment your comments.  ;)
0
Comment
Question by:heyLauryn
3 Comments
 
LVL 92

Accepted Solution

by:
objects earned 100 total points
ID: 6366778
Lauryn,

I don't have time to have a good look at your code and help sort out your problems.
But I had a quick look and a couple of things I noticed:
- instead of adding and removing panels a better (cleaner) approach would be to use a CardLayout (see Sun's Java tutorial).
- FlowLayout only lays out elements horizontally, so your name, email etc text fields will not necessarily appear on seperate lines.
- you don't remove the panels from the content pane (which is were they are added).

Sorry I don't have more time to look at it, but I'm sure someone else can help u out :)

mick
0
 

Expert Comment

by:CleanupPing
ID: 9061903
heyLauryn:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 20

Expert Comment

by:Venabili
ID: 9329902
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- Points for  objects - B grade

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venabili
EE Cleanup Volunteer
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question