I have a TableViewer widget with a single column, where each row in the table's contents is a Composite with a number of child widgets. The column has a label provider that is a subclass of OwnerDrawLabelProvider. The label provider is supposed to render the Composite children in the table cell, but when paint() is called, nothing is r...
Hey,
I'm a web developer at day and thinking about building my first real desktop application. The idea is to build a tool that automates a very repetitive task in a web application where no API is available.
I know I want to use Java. I used it before for web stuff, know the syntax pretty well and want the application to be cross pla...
I have the Comboviewer object for which i am adding a list with two values say Type1 and Type2.
But while displaying it is displaying as : [Type1, Type2]
instead of : Type1 then below this
Type2.
And i want the first one to be selected by default.
...
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 was minimized.
Creating a new shell at any time also brings the (new shell) to the front.
So ...
I am using org.eclipse.swt.widgets.Text's type of Text field but i want to increase length of the field. how to do this.
...
Is it possible to specify a fixed height for a widget - say, a canvas - in SWT? I'm looking into possibly porting an app of mine from LispWorks CAPI to Clojure with SWT, and it's crucial that I have this facility. Many thanks for any help, Chris.
...
Hi
i am wondering, whether the code to create the buttons shown at the eclipse "Welcome" page can be found somewhere.
When you create a new workspace in eclipse, a "Welcome" page is shown at the very beginning. The page shows different type of buttons like, "What is new", "Tutorials", ...
I want to use these type of buttons, but was n...
Eclipse 3.5 (on the Mac, at least) now has a slimmer look to its buttons and scroll bars, whereas previous versions' buttons and scroll bars used the larger, "puffier" look. I would like to adopt this same look in my RCP app, but I can't find in the SWT or JFace APIs anywhere how to force the widgets to use this slimmer look. How is th...
Hi
I disable org.eclipse.ui.forms.widgets.Hyperlink control just calling hyperLink.setEnabled(false). However after that the link doesn't looks like disabled control. The link is not grayed out (but I can't click it of course).
The question is: why the link is not grayed out and what should I do to gray out disabled links?
Thanks
...
Ok, I have a(n) RCP application (that I didn't write), and an application I've developed using just SWT. What I want to do is basically import and launch the main method of the SWT application with arguments, such that it runs in another window, like it's another process. The argument I want to pass is a complex data structure that I d...
Hi,
I faced a problem while using threading for the first time, In an SWT program in the main thread I have created the GUI and opened the shell, and then a new thread is started to run some logic in the model, and in the model at a certain state there is a method is called in the GUI class... and here it is the problem
this method is c...
Hi, this is my first question on stackoverflow (sorry about my english). I'll try to explain the problem as well I can.
I have an swt application with a foreground jade application in which I have a progress bar to inform the duration of the application. To refresh this progress bar I use:
if(Display.getCurrent() != null) {
progres...
Hi
I want to know about SWT & Swing , memory usage and performance. which one has better performance and which one consumes less memory.
Is there a proved benchmark on these measures or everybody with good experience in these fields.
thanks
...
We know that nice looking desktop applications can be produced with SWT; there are Eclipse and Vuze as example. But are there any comparable examples of commercial desktop apps written in Swing?
thanks,
Joe
...
I have a SWT app that opens a OpenGL window (using the LWJGL library) after a button is pressed. It is supposed to close it's main SWT window and open a new one with an OpenGL context. Works fine on Windows. On Mac, I get this error:
2010-03-05 02:28:25.315 java[1315:a07] [Java CocoaComponent compatibility mode]: Enabled
2010-03-05 02:2...
I am trying to embed a JFace TableViewer in a SWT TabFolder, but when I do so, the table does not show up. The current (working code) in my GitToDo code looks like (see this Git repos):
final Display display = new Display();
final Shell shell = new Shell(display);
shell.setText("Git ToDo");
FillLayout layout = new FillLa...
I have subclassed org.eclipse.swt.widgets.Composite to create a new composite control. I want to capture MouseEnter and MouseExit events in this control but the problem I have is that when the mouse is hovered over a component in the control (say, a Label) the MouseExit event is fired, even though the label is part of the whole Composite...
Hi,
I wish to run a video in a SWT application on Windows. Do you think this is possible first of all? If yes, what technologies do you suggest?
Thank you very much and regards,
Krt_Malta
...
A bug has been filed and fixed (super quickly) in SWT:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=305294
Just to preface this, my goal here is to print the two images into a canvas so that I can animate the canvas sliding across the screen (think iPhone), sliding the controls themselves was too CPU intensive, so this was a good alter...
Hi!
I'm implementing a custom preview/tooltip for an Eclipse plug-in. It did it using a Shell in SWT, removing all its trimmings and placing a text box inside it. It looks great. However now I need to dispose of the shell when the cursor moves out of the shell window and I ran into some issues:
Does it make sense to attach a mousemov...