Solved

java gui - JTextField and Jlabel not displaying properly

Posted on 2001-08-08
3
502 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

626 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