SWT 1 « Interoperability « Java Swing Q&A





1. Has anyone got an example of aerith style swing mixed with GUI maintainability of SWT editing?    stackoverflow.com

My boss loves VB (we work in a Java shop) because he thinks it's easy to learn and maintain. We want to replace some of the VB with java equivalents using ...

2. Running SWT components within a Swing App    stackoverflow.com

I was wondering if anybody had any experience trying to run a complex SWT UI hosted inside a Swing component. I've managed to get a very simple demo going but if anyone ...

3. GUI, java, SWT and world map representation    stackoverflow.com

I'm trying to implement a small-scale strategy, taking turns game implemented in Java, GUI is made with JFace and SWT. My challenge is to write a GUI implementation of the world map, where ...

4. Inspect Swing/SWT app at runtime?    stackoverflow.com

Is there any way to inspect (in a broad sense, to get any info) a SWT app without disassembling it (as it's packed as exe and I don't know how to ...

5. Swing versus SWT    stackoverflow.com

What should I be looking at when choosing between SWT and Swing? I've had a little experience with both, but I'm interested in:

  • layouts/layout managers;
  • data binding;
  • pre-built controls;
  • ease of development.
I will assume that they ...

6. Force Look/Feel in SWT    stackoverflow.com

Hopefully no one has asked this question - didn't see it, but I apologize if it's a duplicate. Anyway, I'm building some plug-ins with Eclipse RCP and am using SWT for my ...

7. Compare SWT with SWING    stackoverflow.com

  • Is swt faster than swing?
  • Where can i get good tutorials
    about swt?
  • it easy to migrate from swing
    to swt?

8. Call crystal reports through java    stackoverflow.com

I have one crystal report and i want to create one front end application using java to show the reports to user. Can any one give me the code how can ...

9. Easiest way to unit test SWT and Swing apps in a headless environment?    stackoverflow.com

I'm looking to unit test some SWT and Swing code for a project I'm working on and the tests run fine as long as I'm running them from eclipse. As soon as ...





10. Does Eclipse look like native GUIs?    stackoverflow.com

I am currently reading about SWT. There is often written, that Eclipse as an SWT application looks like the standard GUIs of the host platform or OS. But I dont think ...

11. YouTube Player in Java GUI    stackoverflow.com

I was thinking about implementing an application in java (with GWT gui) that among its options will be able to play youtube video and audio, or at least only audio. The ...

12. Is there a nice way to abstract the GUI so SWT or Swing can be used?    stackoverflow.com

I'm writing an application that has an SWT GUI currently, but would like the end-users to be able to choose between SWT and Swing. I've experimented with abstracting the GUI details ...

13. No Default Date in SWT DateTime     stackoverflow.com

I'm using a SWT DateTime component. It sets the current date as a default selection, when instanciated. How can i prevent this? I want that no date is selected at all... Thanks Patrick ...

14. Two Eclipse UI Form sections that grab excess vertical space and fold properly?    stackoverflow.com

I'm trying to create an Eclipse Form that has three foldable sections, one fixed size and two others that should grab all the remaining vertical space in the editor window so, ...

15. Problems with SWT / AWT bridging?    stackoverflow.com

Afternoon, I'm working on an Eclipse RCP plugin. I want to embed a Swing component into it. At the moment I'm using a SWT <-> AWT bridge like this:

Applet applet = new ...

16. What should I choose SWT or Swing to program GUI in Java?    stackoverflow.com

I need to create a GUI application in Java. I just realized that I have different optional ways to go (SWT and Swing are among them). I have already found out that ...





17. How do you force a java swt program to "move itself to the foreground"?    stackoverflow.com

Currently with swt, I sometimes want a program to arbitrarily come to the foreground (like an alarm clock might). Typically the following works (jruby):

@shell.setMinimized(false)
@shell.forceActive
This brings the shell to the front if it ...

18. Java SWT: wrapping syncExec and asyncExec to clean up code    stackoverflow.com

I have a Java Application using SWT as the toolkit, and I'm getting tired of all the ugly boiler plate code it takes to update a GUI element. Just to set a ...

19. Fading Indicator message in Java    stackoverflow.com

How to/What is a good library, to create a fading indicator message in Java like that of Outlook when you get a message, or Ubuntu/Gnome when you've connected to a network? ...

20. Future of GUI development in Java?    stackoverflow.com

Considering that

  • Sun/Oracle decided to not develop Swing any further after they "invented" JavaFX
  • JavaFX doesn't really work and some consider it a failure already
  • the not really platform-independent nature of ...

21. Workflow UI in Java    stackoverflow.com

Does anyone know of a Java (Swing) based UI framework for building a Workflow application? -Users are given a set of activities -They can drag and drop these activities -Link activities to each other ...

22. What GUI toolkit is Cisco's ASDM written in?    stackoverflow.com

I like the way ASDM on a ASA5505 works very much. Would anyone know what GUI toolkit did Cisco use to develop it?

23. Creating native toolbars with SWT    stackoverflow.com

I would like to add a toolbar to my SWT application. The requirements are as follows:

  • I should be able to create several toolbars
  • Toolbars should be draggable
  • I want an option to hide ...

24. Can Swing components under SWT be accelerated?    stackoverflow.com

When using the SWT/AWT bridge to draw Swing components inside an SWT application, can these components benefit from AWT's hardware acceleration?

25. java novice migrating objects from Swing to SWT    stackoverflow.com

I am in the middle of converting an application that uses swing and awt to draw things to SWT. Since it's sort of overwhelming I'm going through, replacing all references to ...

26. SWT_AWT bridge - SWT in Swing problem    stackoverflow.com

I wanted to embed brower into Frame.I wrote

public class MyBrowser{ 

   public static void main(String[] args) 
   { 
       final ...

27. Swing to SWT conversion: which disadvantages?    stackoverflow.com

We are considering to port our Swing applications to SWT/JFace to get a more native look and feel, more UI rendering speed and less bugs. Is there anybody who already has done ...

28. How to build QGraphicsView like components in Java    stackoverflow.com

I need to build a simulation application in Java and i need to build QGraphicsView like component in Java Swing or SWT. My requirements are

  1. building map
  2. enabling mice object to ...

29. How do I create a C64 style loading screen in Java (Swing/SWT/AWT)?    stackoverflow.com

I was thinking of doing a commodore 64 style loading screen (with the alternating bars that change colour and grow/shrink in size) and was wondering if anyone has tried ...

30. Java List with line separation    stackoverflow.com

Hey, how do i make my java SWT list look like here http://flavio.tordini.org/minitunes I mean that each element is separated by a line from eachother. Or i there any ...

31. eclipse look&feel customization    stackoverflow.com

I need to customize look&feel of my RCP application. I took a look at Eclipse Presentation API and I suppose it allows to customize everithing in workbench except controls. So is ...

32. Create GUI using Eclipse (Java)    stackoverflow.com

Is there any Eclipse Plugin tool(s) who can help to create Graphical User Interface for (swing, awt or swt), because I'm tired of writing everytime the code of Panels, Labels, ... Thanks ...

33. What are the main things that an experienced Java SWT programmer should be aware of when moving to Swing?    stackoverflow.com

What are the major differences which may be encountered? Any major differences in application design? Threading models? The way you go about constructing GUIs? Any features of SWT which aren't available ...

34. Java Swing/AWT Component Access From Another Class    stackoverflow.com

I am writing a sample application with Sakila Sample Database for some experience. I am using eclipse/windowsbuilder for GUI. I have 3 class; VALIDATION to check component values, CONNECTOR ...

35. SWT jar for different platform    stackoverflow.com

I am using JWebBrowser in a swing application. This class belongs to The DJ Project. It needs swt jar to execute. Now I have included swt jar ...

36. Java: Start console parallel to GUI?    stackoverflow.com

that might be some kind of a silly question for you guys, but anyways: Is it possible to start the Java-console (as it is shown in Eclipse) parallel to the actual ...

37. How to read/write from/to an unknown java application build on swt/swing/awt?    stackoverflow.com

Suppose you have an application might be third party,build on swt/awt/swing comprises one text field. You do not know about the application i mean the class name of the application , ...

38. "Runnable Jar" SWT elements dont work    stackoverflow.com

I have a problem deploying an application with SWT components. I read Does Swing support Windows 7-style file choosers? and incorporated SWT with swing into my code. When I run it in ...

39. Text Output in Java Swing    stackoverflow.com

When a user clicks a JButton in my Java-Swing application, a string is returned from a method and the user then needs to be able to read the string (somehow). ...

40. Having the GUI in a separate process    stackoverflow.com

I'm currently developing a GUI for a Java-application that I've created. I would like to keep the GUI in a separate process from the rest of the client. The rationale behind ...

41. Is SWT compatible with AWT?    coderanch.com

Can AWT components be place in SWT components, or vice-versa? My guess is no, but I thought I'd ask anyway. It would be nice to have an SWT panel that can be specified as turning control over to a n AWT panel (or JPanel?) so you could use some AWT -written components/widgets in an SWT app without having to rewrite them. ...

42. To anyone who has tried using Eclipse SWT...    coderanch.com

I just wrote a few simple SWT apps. My feeling is that it is easier than SWING. You also need jface on top of SWT to make things even easier. SWT cant do everything that SWING does. But it enough for most applications. A few things good about SWT: 1.SWT is very fast. 2.SWT look and feel is very loyal to ...

43. SWT - how to simplify interface development?    coderanch.com

SWT is just too new to have too much support like that now... though since eclipse and everything has been released as open source, I'm sure someone will be making a SWT GUI builder soon... in fact, someone is working on the foundations of one right now. Making an XML GUI Generator like Luxor generate SWT rather than Swing code should ...

44. SWT: Advantages and Disadvantages    coderanch.com

I'm giving a presentation on this exact topic this Sunday! If you're in the Minneapolis/St.Paul area check out the MITSPO website for directions. Here's the short answer. SWT loads faster and seems to react quite a bit snappier than Swing... The difference is pretty noticeable on older hardware (like my 450Mhz machine at home), but on newer hardware (like my 1.7 ...

45. swt    coderanch.com

46. SWT    coderanch.com

47. SWT question.    coderanch.com

Does anyone know if SWT is being maintained as a viable alternative to SWING/AWT or if it simply being used by IBM for its own purposes (Eclipse). This is not a SWT vs SWING thread. I simply want to know if anyone knows if SWT is going to be around and maintained for a while. I found an openGL library that ...

48. SWT Questions?    coderanch.com

49. Swing versus SWT    coderanch.com

SWT is far superior to AWT/Swing. It takes the look and feel of the Operating System instead of a fixed motif. If you change the look and feel of your Windows OS, the look and feel of your components would accordingly change. Above all it is much faster than Swing. Basically you would not believe in first instance that your Java ...

50. SWT    coderanch.com

51. SWT Novice    coderanch.com

52. SWT DEV    coderanch.com

53. SWT vs Swing    coderanch.com

Hi, I need to develop some GUI now. I used AWT some time back. later came this swing. now people talk about SWT. I dont understand which one should I prefer for my current development. I donno the pros and cons of either. can you guys out there help me in choosing? Regards, Padma.

54. How to use SWT    coderanch.com

55. Launching SWT from Swing applications    coderanch.com

We have a two applications one is a Eclipse Rich Client(SWT) and another a regular Swing App. Conceptually I need to Launch the SWT App from the Swing App. This is because I need some bi-directional communication bewteen the two applications and it will be a lot of work to redo all the UI in Swing. I know that I can ...

56. SWT on any other IDE?    coderanch.com

I've heard that SWT can only be developed in Eclipse... Is it true? There should be some kinda SWT package available for Swing developers to develop in some other IDEs, not just in Eclipse... Correct me, if I am wrong.... I was a die-hard fan of Swing in the past... But due to the performance and many other weaknesses of Swing, ...

57. SWT & JDIC - Rob?    coderanch.com

JDIC is an interesting response to SWT's desktop integration classes (e.g. Browser or Program), especially when one considers Sun's Java Desktop. Java on the desktop is truly enjoying a (well-deserved) renaissance. Will it drive Swing developers to SWT? Probably not--it will likely spawn more "See, we can do it, too" responses. It will be interesting, however, to see whether developers jump ...

58. What SWT is missing and other thoughts    coderanch.com

The thing I like most about Swing is the amount of documentation, tutorials, and examples. True, Swing has been around longer, but the documentation really helps and it is easily accessable. I have looked into trying out SWT and decided to look through documentations and was a bit dissappointed. I had the feeling that most of my time would be spent ...

59. SWT Graph    coderanch.com

60. SWT and VM Version Dependencies    coderanch.com

I've used SWT 2.1 on JRE 1.2.2 successfully. I actually use it on 1.2.2, 1.3, and 1.4 on Solaris, Windows, HP-UX, Linux, and AIX. My Mac test failed though. Oh, and the thing I love about SWT and using different JREs is that the widgets always look the same. Swing on the other hand changes the looks of the widgets with ...

61. SWT - Advantages to Sun Acceptance/VM inclusion    coderanch.com

So anyone have any good thories or ideas on what advantages could come of SWT becoming part of the standard SDK from Sun? Other than leviating the need for an additional download, I don't see much purpose. Maybe the shared libraries being distributes for you already, but that's just a minor detail.

62. SWT Custom Components & Viewers    coderanch.com

Chapter 9 covers the existing custom controls, but doesn't get into how to build your own custom controls. The custom controls are all in the org.eclipse.swt.custom package. The Eclipse team built these controls specifically to enhance the Eclipse GUI, but are free for the taking. The Viewers in Chapter 14 are JFace's MVC layer on top of SWT widgets that present ...

63. Is SWT worth learning *instead of* Swing?    coderanch.com

I'm relatively new to Java, but not programming in general. I really like the look and feel of SWT apps over Swing. So my question is, should I learn swing at all, or should I just learn SWT right out of the box? As a newbie to Java, would the book be worthwhile? Thanks, Nigel

64. Difinitive Guide to SWT    coderanch.com

The key difference is that SWT uses native widgets, and Swing widgets paint themselves. Native widgets will always conform to the desktop and behave like other native widgets, whereas self-drawn widgets will perpetually play catch-up. Just because something is from Sun doesn't guarantee continual innovation; just because something is NOT from Sun doesn't mean no innovation.

65. aspect of swt being openSource    coderanch.com

Hi, ... it is actually openSource, right? I was just reading blog entry by Eitan Suez about "Experiences with Swing" http://weblogs.java.net/pub/wlg/1627 He complains a bit that one has to find a lot of third parties bits dispersed over the internet to get real productive. With my little experience of non-web gui dev, I share his pov. For example I realized that ...

66. [SWT] Text resize problem    coderanch.com

Sorry for the cross-post, i have first post in "Java In General" but this forum should be a better place... Hi all, i have a problem resizing a Text in a GridLayout. i have simplified my problem in the following example. What i want to do is to resize the text1 Text widget correctly. Here are some screenshoots of what happen, ...

67. Swing or SWT? (like this is new)    coderanch.com

(I'll just converse with myself, then...) From what I've experienced, I'd lean towards Swing development, because the tools and documentation I've seen for it are better and more abundant than those I've seen for SWT. I'd lean towards SWT, because the SWT GUIs I've used respond faster than Swing GUIs, and the native (to Windows, at least) look-and-feel seems to be ...

69. does SWT used for Real word business application?    coderanch.com

hi friends. i want to start a new application , and im thinking about using SWT as GUI. does any one here has some experience with using swt in a real world job ? -i mean a business application- does it has some facilities for working with databases? is there any good GUI designer for swt? what about references and documentation ...

71. Project: Swing or SWT    coderanch.com

Ok, so here is a good topic for conversation. I have a project that I am going to start working on in the very near future. This is a personal project of mine and a friends. Part of the project requires an IDE of sorts for our toolset. I thought that writing my own from the ground up would be a ...

72. Eclipse SWt    coderanch.com

Hi All I am interested in knowing the limitations or loop holes in SWT based UI programming,but couldnt find any. Does anyone know? Also can anybody please let me know any exciting features( crazy things that can be done using SWT) of SWT apart from the usual stuff like native look n feel stuff? Thank you Regards Neha

73. SWT -> TabItem -> addListener    coderanch.com

Hi, I am trying to implement dnd from a table to different tabItems in a TabFolder, when the mouse enters a tabItem, i want the tabItem to get selected (brought to front) so that the draged item can be dropped in the tabItem. Basically I need to receive an event when the mouse enter or hovers over a tabItem ... I ...

74. how to run java application using SWT    coderanch.com

75. SWT package error    coderanch.com

76. Running SWT Applications Outside of Eclipse    coderanch.com

I created a very, very simple SWT project in Eclipse. public class y { private org.eclipse.swt.widgets.Shell sShell = null; public y() { super(); } public static void main(String[] args) { System.setProperty("java.library.path", "C:\\programme\\java\\eclipse\\plugins\\org.eclipse.swt.win32_3.0.1\\os\\win32\\x86"); org.eclipse.swt.widgets.Display display = org.eclipse.swt.widgets.Display.getDefault(); y thisClass = new y(); thisClass.createSShell() ; thisClass.sShell.open(); while (!thisClass.sShell.isDisposed()) { if (!display.readAndDispatch()) display.sleep (); } display.dispose(); } private void createSShell() { sShell = new ...

77. Overlays in SWT    coderanch.com

I am an SWT newbie and have a question about screen layout. I have a form with 3 sections (actually 3 separate groups) : General Info, Version Details, and Step Information. I would like to be able to overlay the step portion of the form over the version details sections. Is there a way to do this in SWT? Thanks in ...

78. SWT    coderanch.com

79. good reasons to Swing over SWT    coderanch.com

Well, this could be an interesting debate which if you search Google you will see this blogged about over and over again. I even said a little spill on my weblog about it. The fact of the matter is, Swing is out there and going pretty strong right now. Just look at the 21 pages of Swing Sightings. So some specific ...

82. SWT migration from Swing    coderanch.com

We're running into issues in work where Swing is just too limiting, especially for an Eclipse plugin we're developing. However, we have a fairly large investment in our Swing GUI development. We're looking at the potential cost/benefit tradeoff of scrapping our Swing GUI and going with JFace or SWT. As far as when to migrate, the earlier in our product tree ...

83. Why we need to use SWT rather than swing    coderanch.com

Why we need SWT? No direct answer. Maybe because it is an alternative for Swing. Maybe because you don't like Swing. Maybe because it prooves more rapid on some machines. Maybe because it looks/is more native. If SUN would replace Swing with SWT? The answer is no. There are too many applications written in Swing already. Maybe just support both, but ...

84. Project Requirements aka Swing vs SWT    coderanch.com

There are, and were in a past book promotion about SWT, a lot of posts regarding which is better, SWT or Swing. The most logical, intelligent, and common answer recently has been choose which ever API meets the needs of your project requirements. However, leaving it at that is insuffecient. We need a list of requirements that each API might fullfill. ...

85. SWT is faster, no Swing is faster..    coderanch.com

I'm sick of this debate. I think it's a non-issue because I don't believe one API is more responsive than the other. However, some people seem to think so. So the challenge is, prove it. If you think SWT is faster, prove it. If you think Swing is faster, prove it. Give me something tangable here other than "The swing apps ...

86. SWT TabFolder related    coderanch.com

87. SWT interface and database    coderanch.com

hi, I have designed gui interface with just two text fields name and bank name and a button. I need to enter this in MySql database so how can i connect it? Any clue or site where it is taught. I googled a lot but what comes up is either designing gui interface or general JDBC connection.I need to know how ...

88. Any SWT gurus out there?    coderanch.com

Hi, This is a desperate cry! I posted (Dynamically redrawing columns in TableViewer - http://www.coderanch.com/t/339988/GUI/java/Dynamically-redrawing-columns-TableViewer) a couple of days ago, but haven't had much luck yet. Am fast running out of time & wondering if if anyone has any indepth expertise in dealing with TableViewers in SWT? If columns cannot be added on the fly, I'll have to change my code ...

89. SWT versus Swing/awt    coderanch.com

I've never used swt but I've read a little bit about how it "remedies" many of the issues users have with java gui interfaces (main one being too slow). I also know that eclipse uses swt. Is it possible to build applications using SWT in other ides (can't imagine why it wouldn't be but I've not heard of it)? Is SWT ...

90. How to integrate SWT code with GEF example    coderanch.com

You may have noticed that you've had no replies, because you have not made any attempt to give background information. - What sort of SWT application have you made? What does it do? - What on earth is GEF? - How does "GEF" relate to your SWT GUI? - What are you trying to achieve by combining "GEF" to your SWT ...

92. Some questions from SWT newbie    coderanch.com

Hello, I am completely new to SWT and have a few questions: 1. how do I set shell resizable to false (i.e not allowing the user to resize a shell) 2. how do i disable the exit button or remove it completely, maybe also being able to remove minimize, maximize and exit if possible 3. In a password field, how do ...

93. A question about closing a shell in SWT    coderanch.com

Hi, everyone! I am writing a desktop application using SWT, but I got a seemingly-trival problem, that's I don't know how to prevent unintentional closing the application window by clicking the close box of the window. I want to fulfill such goal: when a user click on the close box of the window, a message box with a ok button and ...

94. ticking clock in a swt application    coderanch.com

Hi everybody. I am building an SWT application which serves as a support for a board game (keeping score etc.) and as one of the features it contains a timer as a part of the interface. The idea is to have a label which displays seconds left of the clock and two buttons - start(stop) and reset. I know this is ...

95. Dinamic Modal ?? is it possible with SWT ??    coderanch.com

Hu all !! I've builded a GUI with a warning window that opens before closing without saving ( and other such wdialog windows) , trouble is that I can close the main shell and the dialog window still remains.... I can add a class that will call all the closing methods of all dialog buttons if main shell is closed, but ...

96. I can compile SWT out of eclipse but not in Eclipse :)    coderanch.com

By command line I can compile and run successfully javac.exe -classpath "C:\SWT\swt.jar";. HelloWorld.java java.exe -classpath "C:\SWT\swt.jar";. -Djava.library.path=C:\SWT HelloWorld Under Eclipse I have added swt.jar in Java Build Path and classpath and -Djava.library.path=C:\SWT in Run/Run... menu but I got this error why ? I thought using an IDE was supposed to make things easier than commandline java.lang.UnsatisfiedLinkError: no swt-win32-3062 in java.library.path at ...

97. SWT - rearrange the order of CTabItem    coderanch.com

98. SWT question    coderanch.com

Hello, I've built a SWT browser. I'm calling it from a Swing application using new Browser("url"). The problem I have is this, it works the first time I call it but after that , I get an Invalid Thread Access exception. Any thoughts on how to fix this? I want to be able to call as many Browsers as I choose ...

99. SWT FileDialogBox    coderanch.com

Hello friends ,sir, madam I have one doubt. I am invoking the FileDialogBox provided by Eclipse using the following org.eclipse.swt.widgets.FileDialogBox Now When I invoke open method of this class then it hangs for user input. So I invoked a new thread before calling the open method so as to get the title of this FileDialogBox . But I am unable to ...

100. [SWT]GridData not working as expected    coderanch.com

Hello, The GridData.horizontalAlignment is not working as I expected. I am unable to Center my widgets. The following code will demonstrate my problem. Please tell me where I went wrong (This is the first time I am trying out GridLayout as I found FormLayout very tiresome and thought GridLayout will give adequate flexibility with less pain) Display display = new Display(); ...