Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Make good menu  (Read 1745 times)
0 Members and 1 Guest are viewing this topic.
Offline blow

Senior Newbie

« Posted 2006-09-18 16:05:03 »

Hi all, i want make menu for my game, i say menu like option menu ecc ecc.
Now im using a modal JDialog so i can block current thread when i show my JDialog, but it dont work good...becouse when when i setVisible(true) i spend a few time to paint it, so i see a white JDialog for a moment.
I think the solution is show the dialog as soon as it is created, but if it si modal my thread is block.

How do you make a game menu?
Offline blow

Senior Newbie

« Reply #1 - Posted 2006-09-18 17:27:36 »

Another possible solution is transalte jdialog out of screen, and show it, and when i would use it have only to tranlsate it in screen.
But when i show the jdialog out of screen, it has to be not modal or it block my thread, the problem is setModal(true) not work if it's inovocated after show jdialog...

There are any solutions?
Offline ENC

Junior Devvie

« Reply #2 - Posted 2006-09-28 07:55:52 »

Maybe what you can try is to use a JPanel and place it on the the JLayerPane of the JFrame...

Maybe that would solve the problem?

Suggesting only.. Not sure if that is the right solution
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline cylab

JGO Kernel

Medals: 180

« Reply #3 - Posted 2006-09-28 08:45:02 »

Are you doing the painting on the JDialog yourself? Are you sure it's the cause for the white background? Maybe your game thread is takes too much processing power and you should suspend your game before opening the JDialog.

Mathias - I Know What [you] Did Last Summer!
Pages: [1]
  ignore  |  Print  

EgonOlsen (42 views)
2018-06-10 19:43:48

EgonOlsen (22 views)
2018-06-10 19:43:44

EgonOlsen (43 views)
2018-06-10 19:43:20

DesertCoockie (197 views)
2018-05-13 18:23:11

nelsongames (124 views)
2018-04-24 18:15:36

nelsongames (123 views)
2018-04-24 18:14:32

ivj94 (863 views)
2018-03-24 14:47:39

ivj94 (125 views)
2018-03-24 14:46:31

ivj94 (768 views)
2018-03-24 14:43:53

Solater (140 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!