0

I'm creating a table now using the Table type defined in org.eclipse.swt.widgets. Eclipse however is letting me know that there is also a Table I can use in javax.swing.table.

Upon investigation, the two Tables are accomplishing the same thing. Why then do we have two? What does one accomplish that the other doesn't?

Baz
  • 36,440
  • 11
  • 68
  • 94
CodyBugstein
  • 21,984
  • 61
  • 207
  • 363

1 Answers1

3

That depends on which framework you want to use. AWT/Swing and SWT are the two main frameworks for developing desktop apps in Java.

There is a good question about which one to choose here.

So the answer seems to be: You will have to choose one of them (Swing or SWT), since you really don't want to mix them unless absolutely necessary.

Community
  • 1
  • 1
Baz
  • 36,440
  • 11
  • 68
  • 94
  • Should my choice have anything to do with Eclipse Plugins? For example, if I'm building a plugin, should I avoid Swing? – CodyBugstein May 26 '13 at 12:36
  • @Imray In general, you should avoid mixing these two technologies if possible. Eclipse is written using SWT, so are the Eclipse plugins. Consequently, this rules out Swing. You *can* use Swing if you really have to (as illustrated [here](http://www.eclipse.org/articles/article.php?file=Article-Swing-SWT-Integration/index.html)). – Baz May 26 '13 at 13:18