There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
My GUI is modal, why?


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
gdi1942's Avatar
Senior Member with 191 posts.
 
Join Date: Nov 2006
Experience: Advanced
09-Aug-2007, 08:02 PM #1
My GUI is modal, why?
I honestly don't even know what I did to cause this and I'm kind of in a panic. A made this beatuiful program and was making some finishing touches by putting an about box in. I got to launch it and the window come up fine, but I can't click on ANYTHING it's almost like my applicaiton went modal without me telling it to, and I've debugged time and time again and can't find what happened. I have to use eclipe debugger to stop the application. I'd post code but I wouldn't know what to post. I'm coding in Java

Any info would be nice.
mt2002's Avatar
Computer Specs
Senior Member with 573 posts.
 
Join Date: Sep 2005
Location: 127.0.0.1
Experience: Advanced
10-Aug-2007, 09:07 PM #2
Have you tried removing the "finishing touches"?

Odds are, something was added that started dependendent code to have problems.

Please note, I don't know Java, but do know C++ -- Which I believe is simular.
Either way, I would personally start undoing any recent changes to the code until
it is resolved. Then try to find out why.
__________________

"Within C++, there is a much smaller and cleaner language struggling to get out." - Bjarne Stroustrup
Work: Tech Support, Programmer; A+ 220-602 Certified
gdi1942's Avatar
Senior Member with 191 posts.
 
Join Date: Nov 2006
Experience: Advanced
11-Aug-2007, 12:34 AM #3
that's just it, i've almost deleted the entire program, to see if something was causing it, and no luck.
Chicon's Avatar
Computer Specs
Distinguished Member with 6,588 posts.
 
Join Date: Jul 2004
Location: 50° 34' 07.13" N - 04° 10' 23.
Experience: Second socks retriever
16-Aug-2007, 12:00 PM #4
Hi gdi1942,

I assume the about box you implemented to your GUI is a Dialog or its child JDialog.
There's a specific method called setModal. Did you try it ?

Example :

JDialog jd = new JDialog();
.
.
jd.setModal(false);
obidon's Avatar
Account Disabled with 184 posts.
 
Join Date: Aug 2007
Experience: Intermediate
16-Aug-2007, 01:34 PM #5
Try running it on a another machine, and see if it still crashes when run.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:31 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.