GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is there anyting like JTable?

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
xlinuks
Familiar Face


Joined: 31 Aug 2007
Posts: 8

PostPosted: Sun Feb 24, 2008 10:31 am    Post subject: Is there anyting like JTable? Reply with quote

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?
Back to top
Micah Carrick
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 480
Location: Portland, OR USA

PostPosted: Sun Feb 24, 2008 6:02 pm    Post subject: Reply with quote

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
Back to top
xlinuks
Familiar Face


Joined: 31 Aug 2007
Posts: 8

PostPosted: Mon Feb 25, 2008 3:40 pm    Post subject: Reply with quote

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 :)
Back to top
vronskij



Joined: 27 Feb 2008
Posts: 3

PostPosted: Wed Feb 27, 2008 10:35 pm    Post subject: Reply with quote

[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,
Back to top
xlinuks
Familiar Face


Joined: 31 Aug 2007
Posts: 8

PostPosted: Sun Mar 02, 2008 2:13 pm    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP