Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
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  
  alternative to CardLayout  (Read 907 times)
0 Members and 1 Guest are viewing this topic.
Offline PRW56

Senior Newbie





« Posted 2012-06-23 23:40:17 »

Hello I'm new to the forum... Anyway I have been told that swing is pretty useless in active rendering (because of the EDT i guess?), so I am curious what a good alternative to CardLayout is? Ty for any and all help.
Offline davedes
« Reply #1 - Posted 2012-06-24 00:18:13 »

Why are you using CardLayout for active rendering? Huh

OpenGL (LWJGL or JOGL) is probably what you're looking for. There are libraries like LibGDX and Slick to help minimize the GL setup.

Offline PRW56

Senior Newbie





« Reply #2 - Posted 2012-06-24 00:24:51 »

dang that sucks... I didn't want to have to learn openGL (basics or otherwise) for a while, but the reason I figured you would need it for active rendering, is because you would have multiple screens (start screens, loading screen maby, game screen, and anything in between). Whenever I had used the remove() method in the past (to remove buttons or labels), it would just close the frame or remove the object and leave behind its face (it would look like the button is there, but it doesn't respond to clicks or anything).
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online ags1

Senior Member


Medals: 5
Projects: 1



« Reply #3 - Posted 2012-06-24 00:27:21 »

If the choice is learning Swing or learning OpenGL - learn OpenGL. It's less crazy.
Offline PRW56

Senior Newbie





« Reply #4 - Posted 2012-06-24 00:53:17 »

really? I had allways assumed openGL was something like win32, which I guess isn't that bad, but the use of bitwise operators usually throw me off. Not over what they do, but the overall logic of it.
Online ra4king

JGO Kernel


Medals: 264
Projects: 2


I'm the King!


« Reply #5 - Posted 2012-06-24 05:03:35 »

What bitwise operations? Wink

Online ags1

Senior Member


Medals: 5
Projects: 1



« Reply #6 - Posted 2012-06-24 10:15:30 »

Arguably a hammer is easier to use than a screwdriver, but have you ever tried to hammer in a screw?
Offline Mads

JGO Ninja


Medals: 23
Projects: 3


One for all!


« Reply #7 - Posted 2012-06-24 10:19:30 »

really? I had allways assumed openGL was something like win32, which I guess isn't that bad, but the use of bitwise operators usually throw me off. Not over what they do, but the overall logic of it.

I'd agree it is a little.. off your usual Java libraries.

Why don't you take a look at Slick2D? That is OpenGL under a Java2D-like, surface.

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 438
Projects: 4


Hand over your head.


« Reply #8 - Posted 2012-06-24 19:47:24 »

What bitwise operations? Wink

Maybe:
1  
glClear(GL_COLORBUFFER_BIT | GL_DEPTHBUFFER_BIT);


Anyway, there are very little binary operations in OpenGL, except when you work with the stencil buffer.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Projects: Revenge of the Titans, Titan Attacks, Droid Assault, and Ultratron
Online ra4king

JGO Kernel


Medals: 264
Projects: 2


I'm the King!


« Reply #9 - Posted 2012-06-24 20:03:29 »

Well I meant more on custom numbers, not those flags. Tongue

Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 438
Projects: 4


Hand over your head.


« Reply #10 - Posted 2012-06-24 20:06:54 »

It's about what PRW56 meant.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Projects: Revenge of the Titans, Titan Attacks, Droid Assault, and Ultratron
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (81 views)
2013-05-17 21:29:12

alaslipknot (91 views)
2013-05-16 21:24:48

gouessej (122 views)
2013-05-16 00:53:38

gouessej (114 views)
2013-05-16 00:17:58

theagentd (126 views)
2013-05-15 15:01:13

theagentd (113 views)
2013-05-15 15:00:54

StreetDoggy (158 views)
2013-05-14 15:56:26

kutucuk (180 views)
2013-05-12 17:10:36

kutucuk (180 views)
2013-05-12 15:36:09

UnluckyDevil (187 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.081 seconds with 20 queries.