Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (576)
games submitted by our members
Games in WIP (498)
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 1248 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

JGO Knight


Medals: 28
Projects: 2
Exp: 5 years


Make code not war!


« 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.
Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


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

What bitwise operations? Wink

Online ags1

JGO Knight


Medals: 28
Projects: 2
Exp: 5 years


Make code not war!


« 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: 24
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: 605
Projects: 4
Exp: 16 years


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
Offline ra4king

JGO Kernel


Medals: 322
Projects: 2
Exp: 4 years


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!
Legends of Yore - The Casual Retro Roguelike
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 605
Projects: 4
Exp: 16 years


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
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (16 views)
2014-04-15 18:08:23

BurntPizza (14 views)
2014-04-15 03:46:01

UprightPath (27 views)
2014-04-14 17:39:50

UprightPath (12 views)
2014-04-14 17:35:47

Porlus (29 views)
2014-04-14 15:48:38

tom_mai78101 (51 views)
2014-04-10 04:04:31

BurntPizza (110 views)
2014-04-08 23:06:04

tom_mai78101 (211 views)
2014-04-05 13:34:39

trollwarrior1 (179 views)
2014-04-04 12:06:45

CJLetsGame (185 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
java-gaming.org 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‑gaming.org
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!