File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes input errors in JDialogs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "input errors in JDialogs" Watch "input errors in JDialogs" New topic

input errors in JDialogs

Barry Brashear
Ranch Hand

Joined: Jun 05, 2001
Posts: 303
What is the best idea for presenting input errors to the user in a JDialog?
Should you have a JLable at the bottom where you place an error message?

Serghei Jelauc
Ranch Hand

Joined: Jul 24, 2002
Posts: 128
May be a did not understand the question, but why not? Of corse you can add JLabel to the JDialog. Try this:

Hope it will help

SCJP 1.4 <br />SCBCD 1.3<br />SCWCD 1.4
I agree. Here's the link:
subject: input errors in JDialogs
It's not a secret anymore!