Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
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  
  TableLayout  (Read 5325 times)
0 Members and 1 Guest are viewing this topic.
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Posted 2011-02-22 13:27:43 »

I have my latest project mostly finished:
http://code.google.com/p/table-layout/
The TWL implementation doesn't exist yet, but will be easy. There is a simple class in the tools directory that renders a Swing GUI on the fly as you type in the TableLayout language. I'll probably make this an applet eventually. I started the project 10 days ago in my free time, but my motivation began to wane so I did a big push tonight to (mostly) finish the project. Now I'll probably take a bit of a break. Who knows, maybe I'll actually work on my game next?

Hmm, I don't have room in my sig for another project. Sad

Feedback of any kind is appreciated!

Offline badlogicgames
« Reply #1 - Posted 2011-02-22 20:59:17 »

And not a single f**k was given :p

http://www.badlogicgames.com - musings on Android and Java game development
Offline ra4king

JGO Kernel


Medals: 338
Projects: 2
Exp: 5 years


I'm the King!


« Reply #2 - Posted 2011-02-22 22:00:22 »

And not a single f**k was given :p
If this is your normal attitude toward hardworking people who bring quality software like Nate, then an admin needs to ban you.

I have my latest project mostly finished:
http://code.google.com/p/table-layout/
The TWL implementation doesn't exist yet, but will be easy. There is a simple class in the tools directory that renders a Swing GUI on the fly as you type in the TableLayout language. I'll probably make this an applet eventually. I started the project 10 days ago in my free time, but my motivation began to wane so I did a big push tonight to (mostly) finish the project. Now I'll probably take a bit of a break. Who knows, maybe I'll actually work on my game next?

Hmm, I don't have room in my sig for another project. Sad

Feedback of any kind is appreciated!
That is pretty amazing! Integration with TWL will make it even better!
I will definitely try it next time I need to make a non-game application.
Keep up the good work!! Cheesy

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #3 - Posted 2011-02-22 22:33:38 »

And not a single f**k was given :p
Yeah, I don't have those powers anymore but if I did I would send you a warning.

See my work:
OTC Software
Offline badlogicgames
« Reply #4 - Posted 2011-02-22 23:00:03 »

Calm down, it's an insider. Nate and me are on the same team...

http://www.badlogicgames.com - musings on Android and Java game development
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #5 - Posted 2011-02-22 23:22:54 »

I don't know what he's talking about, ban his ass! Cheesy  (j/k)

I guess people must be too busy building GUIs with TableLayout to post any feedback. Wink

Offline ra4king

JGO Kernel


Medals: 338
Projects: 2
Exp: 5 years


I'm the King!


« Reply #6 - Posted 2011-02-23 00:10:41 »

Calm down, it's an insider. Nate and me are on the same team...
Nate and I are .....

Not only do you have bad logic, but bad grammar Grin

Offline badlogicgames
« Reply #7 - Posted 2011-02-23 02:04:42 »

Go learn my native tongue then if those grammar errors are to much for you handle and make you feel bad.

http://www.badlogicgames.com - musings on Android and Java game development
Offline ra4king

JGO Kernel


Medals: 338
Projects: 2
Exp: 5 years


I'm the King!


« Reply #8 - Posted 2011-02-23 03:24:02 »

What's your native tongue? Grin

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 744
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #9 - Posted 2011-02-23 14:18:36 »

As a result of this thread, I decided that everybody is banned.

In other news, I love how JGO runs perfectly well without moderators!

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 338
Projects: 2
Exp: 5 years


I'm the King!


« Reply #10 - Posted 2011-02-23 15:25:35 »

As a result of this thread, I decided that everybody is banned.
Awwww, I was just starting to like this place Cry

In other news, I love how JGO runs perfectly well without moderators!
Why are there no mods? How many admins are there besides you?

Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #11 - Posted 2011-02-23 18:13:34 »

Why are there no mods? How many admins are there besides you?
-5

See my work:
OTC Software
Offline ra4king

JGO Kernel


Medals: 338
Projects: 2
Exp: 5 years


I'm the King!


« Reply #12 - Posted 2011-02-23 18:55:14 »

I mean I thought the innocent mods that lost their privileges in that attack on SMF have gained them back.

Quote
For the moment all moderators have lost their permissions, to prevent this from happening again.

Grin

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 744
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #13 - Posted 2011-02-23 19:07:07 »

There is this massive discrepancy between good intentions and available spare time.

'meanwhile' the #1 priority is to keep JGO up and running (and keeping my dayjob, naturally Smiley)

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #14 - Posted 2011-02-23 22:58:57 »

Hey guys! How about that layout library! Wooo!

Can a brother get a code review? Comments on the language? You hate it and would never use it?

I was thinking about adding SWT and Android support, so it could layout GUIs with those UI toolkits.

Offline ra4king

JGO Kernel


Medals: 338
Projects: 2
Exp: 5 years


I'm the King!


« Reply #15 - Posted 2011-02-23 23:20:31 »

LOL yeah back to the main topic Tongue

I looked through it and I am preparing to use it in an app I'm about to make Smiley

Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #16 - Posted 2011-03-13 05:05:23 »

Update: Now has TWL support. Example:
http://code.google.com/p/table-layout/source/browse/trunk/toolkits/twl/test/com/esotericsoftware/tablelayout/twl/TwlTest.java#44

Offline ra4king

JGO Kernel


Medals: 338
Projects: 2
Exp: 5 years


I'm the King!


« Reply #17 - Posted 2011-03-13 05:29:43 »

That's awesome! But first, I've got to learn TWL Tongue

Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #18 - Posted 2011-03-16 08:45:30 »

Hopefully it is clear by now that TableLayout is easily ported to other toolkits. Anyone care to do SWT? Smiley

Update: Now has libgdx support. libgdx has a scene2d package and now TableLayout can be used to layout actors in your 2D scenes. Eg, this TableLayout definition:
1  
2  
3  
4  
5  
6  
7  
8  
9  
debug
* spacing:10 size:50
'1' '2' '3'
---
'4' '5' '6'
---
'7' '8' '9'
---
'#' '0' '*'


Produces this:



Debug causes the red and green borders to show up, so you can see the table (green) and edges of the actors (red). The asterisk sets some properties that apply to all cells. The single quoted values create a label. You could also put in a bunch of images, buttons, or any libgdx actor (write your own fancy one). Conveniently libgdx actors already have names, so you can just add actors to your scene, then reference the names in the TableLayout with square brakcets:

1  
2  
3  
4  
5  
6  
7  
8  
* spacing:10 size:50
[1] [2] [3]
---
[4] [5] [6]
---
[7] [8] [9]
---
[#] [0] [*]


One nice thing about using TableLayout with libgdx is that you can describe a table that has cells that expand, actors can fill any percentage of a cell, etc. This means you can have layouts that work on many different screen resolutions. Coding this manually can be tedious.

See the TableLayout homepage for many other features such as describing nested tables, setting bean properties, etc.

Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #19 - Posted 2011-03-17 09:26:45 »

Update: Added TableLayout support for the Android GUI toolkit.

Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #20 - Posted 2011-04-08 23:40:46 »

It's getting pretty awesome. The editor does syntax highlighting and on the fly compilation and error underlining. JWS here:
http://table-layout.googlecode.com/svn/wiki/jws/editor.jnlp

Offline ra4king

JGO Kernel


Medals: 338
Projects: 2
Exp: 5 years


I'm the King!


« Reply #21 - Posted 2011-04-09 00:19:34 »

Looking at this and your other projects on Google Code, Nate you are amazing! Grin

How did you do the syntax highlighting and line numbering?

Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #22 - Posted 2011-04-09 02:58:27 »

Thanks. Smiley

How did you do the syntax highlighting and line numbering?
It was done in one evening using RSyntaxTextArea and Ragel. The Ragel code for it is here. Ragel is super cool, I'm finding more uses for it all the time. Smiley

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.

Riven (15 views)
2014-07-29 18:09:19

Riven (10 views)
2014-07-29 18:08:52

Dwinin (10 views)
2014-07-29 10:59:34

E.R. Fleming (28 views)
2014-07-29 03:07:13

E.R. Fleming (10 views)
2014-07-29 03:06:25

pw (40 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (27 views)
2014-07-23 21:07:15

Riven (29 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!