Linked by Thom Holwerda on Thu 14th May 2009 15:39 UTC
Java This article explains how to develop and implement trees in the Standard Widget Toolkit. Learn how an SWT tree is created and populated with data, how columns can be used to categorize data, how a tree can be extended to support row sorting, and how the tree's content can be searched.
Thread beginning with comment 363671
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: Article in time,
by marcelkoopman on Thu 14th May 2009 17:29 UTC in reply to "Article in time,"
marcelkoopman
Member since:
2007-03-23

I opened it because this night I should implement trees.

But seeing that it deal with Java SWT, Beeuuuu :-*

I will implement it in Qt anyway, this night and in C++.
(maybe python who knows !)


So whats wrong with Java according to you?
Or you just want to show off that you can hack something in C++?

Reply Parent Score: 1

RE[2]: Article in time,
by boulabiar on Thu 14th May 2009 17:52 in reply to "RE: Article in time,"
boulabiar Member since:
2009-04-18

show what ?

Anyway, I don't like Java and its speed disaster.
Some years I heard about an OS written in Java, still alive ? XD

C++ is for robust things, Python is for prototyping this is the best combination !

Reply Parent Score: 1

RE[3]: Article in time,
by FunkyELF on Thu 14th May 2009 18:01 in reply to "RE[2]: Article in time,"
FunkyELF Member since:
2006-07-26

show what ?

Anyway, I don't like Java and its speed disaster.
Some years I heard about an OS written in Java, still alive ? XD

C++ is for robust things, Python is for prototyping this is the best combination !


Look at Jython. They have an excellent tree example. I wrote jython viewer that connects to a database with hierarchical information in like 10 lines (clean and clear) of code. It just showed me the tree structure and printed information when you selected a node.

Reply Parent Score: 2

RE[3]: Article in time,
by marcelkoopman on Thu 14th May 2009 19:32 in reply to "RE[2]: Article in time,"
marcelkoopman Member since:
2007-03-23

show what ?

Anyway, I don't like Java and its speed disaster.
Some years I heard about an OS written in Java, still alive ? XD

C++ is for robust things, Python is for prototyping this is the best combination !

Speed disaster? Come on, please be correct. Java was slow in the beginning of its release. Current JIT compilers are as fast as C++ / native code or even faster in some cases.
Why do you think NASA is using Java instead of C++? Because of pointer bugs. Its not reliable enough.

Reply Parent Score: 0

RE[3]: Article in time,
by Bill Shooter of Bul on Thu 14th May 2009 20:17 in reply to "RE[2]: Article in time,"
Bill Shooter of Bul Member since:
2006-07-14

C++ is for robust things in the same way that Windows 95 is the ideal operating system for your heart & lung machine.


Edit: tried to clean up the sentence structure. My grammar parser is broken, must have been written in c++ ;)

Edited 2009-05-14 20:18 UTC

Reply Parent Score: -1

RE[3]: Article in time,
by dimosd on Fri 15th May 2009 08:06 in reply to "RE[2]: Article in time,"
dimosd Member since:
2006-02-10

C++ is for robust things, Python is for prototyping this is the best combination !


Let me correct a typo, you meant Ruby there, right ;-)

Reply Parent Score: 2

RE[2]: Article in time,
by giddie on Fri 15th May 2009 09:00 in reply to "RE: Article in time,"
giddie Member since:
2008-04-29

There's no point going into a Java vs C++ argument here -- the question is one of toolkit design. Qt is an exceptionally well-designed toolkit (and has Java bindings, remember), but not everyone is fortunate enough to be in a position to use it, and in some situations it may not be appropriate.

Personally, I disliked the design of both the SWT and Swing toolkits when we studied them at university, but if I were required to write something using SWT, this article would be useful, so good job!

Now how about a series of articles comparing widget toolkits -- Qt, GTK, wxWidgets, FLTK, etc...?

Reply Parent Score: 2