|
|
| Author |
Message |
|
|
xlinuks Familiar Face
Joined: 31 Aug 2007 Posts: 8
|
Posted: Sun Feb 24, 2008 10:31 am Post subject: Is there anyting like JTable? |
|
|
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
|
Posted: Sun Feb 24, 2008 6:02 pm Post subject: |
|
|
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
|
Posted: Mon Feb 25, 2008 3:40 pm Post subject: |
|
|
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
|
Posted: Wed Feb 27, 2008 10:35 pm Post subject: |
|
|
[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
|
Posted: Sun Mar 02, 2008 2:13 pm Post subject: |
|
|
| 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 |
|
 |
|