GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Tue Jul 29, 2014 8:40 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Is there anyting like JTable?
PostPosted: Sun Feb 24, 2008 10:31 am 
Offline
Familiar Face

Joined: Fri Aug 31, 2007 3:19 pm
Posts: 8
Hi,
I'm coming from Java, learning C++ & Gtk to program for Linux. So far I like it. However I couldn't find a class that would be a "real" Table like the one in javax.swing.JTable. I found the Table class in Gtk, but it's rather a layout manager. Maybe the "real" Table in Gtk is called in some other way?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 24, 2008 6:02 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 12:07 am
Posts: 563
Location: Portland, OR USA
As far as I can tell (from Google Images) is most similar to a GtkTreeView. The GtkTreeView seems very complicated for new GTK+ programmers at first, however, it's complexity is what yields it's extraordinary abilities. You can do so very much with it.

You should probably start with the GTK+ 2.0 Tree View Tutorial

_________________
Micah Carrick - Forum Administrator
http://www.micahcarrick.com


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 25, 2008 3:40 pm 
Offline
Familiar Face

Joined: Fri Aug 31, 2007 3:19 pm
Posts: 8
Thanks!
At a quick look it seems to be a mix of Java's JTree & JTable. I'll check try the tutorial out and post my conclusions :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 27, 2008 10:35 pm 
Offline
Familiar Face

Joined: Wed Feb 27, 2008 9:27 pm
Posts: 6
[quote="Micah Carrick"]As far as I can tell (from Google Images) is most similar to a GtkTreeView. The GtkTreeView seems very complicated for new GTK+ programmers at first, however, it's complexity is what yields it's extraordinary abilities. You can do so very much with it.
/quote]

I think, this is not correct. There is no Table widget (sometimes called Grid widget, Spreadsheet widget) in GTK+. This has to be done manually. As a custom widget. There is already such widget created in GtkExtra,


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 02, 2008 2:13 pm 
Offline
Familiar Face

Joined: Fri Aug 31, 2007 3:19 pm
Posts: 8
Hehe I'm surprised but it looks indeed that there's no such thing. On the other hands I found in GTK things I've been missing much in Java. So that's OK so far.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group