swt

how can I make my jface ITableTabelProvider image scale correctly

How does SWT work out how to scale Images in a Table ? I am using an ITableLabelProvider to provide images for an SWT Table. I have recently widened the table columns from 140 to 170 and I have widened the Image object passed from ITableLabelProvider. SWT now scales this 170-pixel image down to 140 pixels and displays 30 pixels of emp...

Eclipse: how to show SVG with SWT or free open source SVG Viewer plugin?

I would like to display a svg file inside a eclipse view. a) It would be nice if the plugin can do basic animations too (coloring the area on mouse over). I look for a more practical information: what plugin or library has somebody successfully used? b) or a variant to use svg together with swt. Btw. have already googled for "eclips...

Strange Classpath, .NoClassDefFoundError errors

Edited: SOLUTION FOUND. This is strange and not the best solution, but I just went ahead and put MY JAVA CODE (com.*) the classes in the swt.jar so that swt.jar and my classes are loaded at the exact same moment and by the same classloader. Not the best solution but a temporary fix Edited: I added most of the code here: http://groups...

Looking for a Combo(Viewer) in SWT/JFace which supports autocomplete

I'm looking for a Combo(Viewer) in SWT/JFace which supports autocomplete / type-ahead, i.e. the user can enter a couple of characters and the drop down list should show all matching elements. ...

Aligning text and image in an SWT Button?

I'm using SWT in Java and I'm trying to left align an image and text that I have inside an SWT Button. It seems like it should be a simple button.setAlignment(SWT.LEFT) call, but that isn't working. A quick Google search leads me to believe this may be a bug in the SWT framework. Does anyone have any help on this? ...

DirectoryDialog in swt does not respect the text field at the bottom of the dialog.

DirectoryDialog in swt has a text field at the bottom labeled Folder: It shows the name of the directory selected in the tree above. However text entered in this field (to change the directory name) is always ignored. Any suggestions to disable this field or make it work so it change the directory name. ...

Assimilate existing apps?

Hey Folks, I read all lot about rich client platforms and the OSGi framework, but stuck with this question: Is it possible to assimilate existing applications (either java-based or win32-based) in one application window? I aim at connecting different kinds of (existing) application in one application (with Eclipse RCP) to offer the gen...

Stop SWT Browser Printing Contents?

Does anyone know of a way to stop an SWT Browser widget from printing its contents? In my app, this widget will display confidential files. I cannot block everything, but want to make it as difficult as possible to get information out. I easily hide the context menu when a user right-clicks, so Print cannot be gotten to in that fashio...

SWT & JFace from command line

I 'm running bash shell in OS X and would like to try some SWT/JFace tutorials. I've downloaded eclipse (let's assume at $ECLIPSE_HOME) and swt.jar (let's assume at $SWT_HOME). Now, i would like to compile and run a SWT and/or JFace application from command line without running eclipse. I haven't set up CLASSPATH and i have both JDK 1.5 ...

Force Look/Feel in SWT

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 UI. I have a Composite that contains some panels and other items - anyway, I've noticed a bit of a difference in the appearance of the UI depending on how my OS is se...

Draw2D figure with get position at offset

Hello. I am looking for a way to get the position coordinates for an offset of a Draw2D TextFlow. For example SWT's StyledText supports that directly (getLocationAtOffset), but none of the Draw2D text figures supports this. Any ideas how I could calculate the position with the given methods of TextFlow? Regards, Kai ...

[SWT]Make Animations.

Hello everyone. My question is quite simple but I can't find any clear answer anywhere... I have to make some animated design with lots of pretty effects and color gradients in a SWT compliant way ... I assume what I try to mean is not clear as water so I'll try to explain more... I have an RCP application in which I need to have a spe...

SWT, Maintain default tab ordering when adding Key Listner

I've been creating a custom TabFolder extension that adds a key listener to allow quick tab switching using an ALT + # hotkey. By adding the KeyAdapter to my TabFolder, the event handler works properly only when you have a tab header selected (in which case the ALT + ARROW_LEFT/ARROW_RIGHT also work.). I need this hot key to be active w...

TreeViewer#update(Object element, String[] properties); what do properties refer to?

Hello, I have been wondering about the parameter 'properties' in the method TreeViewer#update(Object element, String[] properties). What are they? What do they refer to? I am not sure what goes into the String[] - are there predefined constants to use? Or are these the names of my column headers? Something else? I couldn't find any e...

SWT update / redraw / layout problem

Hello, I know many people experience this problem, but the solutions I found online do not seem to solve mine. I have a composite that has three buttons. What I want is the following : When I click one button, I want some other button to be grayed out ( setEnabled(false) ) and after a while (after a method execution), I want the button ...

Java SWT - Text on Transparent Shell?

In Java SWT, is there a way to draw text on a transparent shell so that only the text appears visible? What I would like to do is have the text appear on my desktop without any background window. Using shell.setAlpha() will make the entire shell transparent, including any elements that appear on it (which I am trying to avoid). ...

Java developer moving into Java Desktop development

I've been writing Java web (JSF, Struts, JSR168) apps for a number of years. With the recent departure of a colleague, it looks like I'm going to be building more client applications. I've used Eclipse since the beginning and I'm really comfortable with it. It feels as though SWT is waning (just an opinion based on literature I can fi...

SWT: How to create a Group without border?

I'm creating a login form with some labels, text inputs, and a button. I put them in a Group, but I don't want to have the border of the group displayed. Is there any way to remove/hide it? Should I be using other Composite than Group? ...

SWT Multiple Monitor Support on Solaris?

I am writing an application in Java using SWT. On our Solaris machines, we have multiple monitor setups, but they are treated in isolation by the operating system. This means I can't open the application and drag it to another monitor. The right-click context menu doesn't even allow me to change the monitor the application is displayed o...

How do I change the index of a TableItem?

Inside an SWT Table I have many TableItems. I want to move one of them from index X to index Y. Is there a way to do that? How? Thanks. ...