swt

What UI is used on this pictures? (node based ui)

Hi I'm wondering what UI library is used on the images below (it's from CityEngine). Does anyone know other UI libraries with similar capabilities (free floating, connected nodes with arbitrary UI elements)? I think it might be a part of Eclipse/JFace/SWT toolkit. or: ...

How to get values between differents Shells/Displays - SWT

Hello everybody! I'm beginner in SWT and I have a question about get values between differents Sheels/Displays. I have 2 screens, one to sell and other to products' search. When I open a sale's screen, and found the product in search's screen, I need send to sale's screen, the result of search. The search's results are opened in a ta...

Workflow UI in Java

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 (workflow steps) ...

Saving state of a Window in Java/SWT

Hello, I'm trying to build a small application using Java and SWT for the GUI. I'm looking for a way to store in some file the preferences set by the user, I mean, if the window was resized then that new size should be saved for next time the application starts. The same thing with some controls like textbox and so on. I came up with t...

Changing org.eclipse.swt.widgets background color in Windows

Right now I am trying to change the background color of a org.eclipse.swt.widgets.Button with the following code: Button sceneButton = new Button(border, SWT.TOGGLE | SWT.FLAT); sceneButton.setBackground(Color.RED); This works fine when I run the program in Solaris, but does nothing when I run the code in Windows. Is this...

SWT StyledText and unicode support

I need to display a set of strings which contains characters from GB18030 set in a SWT StyledText field. Most of the them got displayed correctly but some of them are displayed like boxes. Is this because I am support to install certain font that support GB18030 character set? If so, what font should I have installed? Or should I...

SWT browser doesn't scroll

I've implemented an SWT Browser on my Windows 7 machine as follows: Browser browser; try { browser = new Browser(parent, SWT.NONE); browser.setUrl(url); } catch (final SWTError e) { System.out.println(e); } I navigate to a page that contains the following source code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitio...

SWT Browser - disabled Vertical Scroll how do i hide it?

I have a SWT shell, with an SWT browser in it. on OSX it works fine, but when on Windows it insists on putting a disabled vertical scrollbar in the shell or browser (i don't know which!). Is there a way of forcing the widgets to hide their scroll bars? When i call getVerticalScrollBar() or the horizontal equivilant on either the shell o...

Widget inside a custom text editor in Eclipse

I'm developing a custom text editor for a programming language in Eclipse. Is it possible to put a widget (a button, for instance) inside a custom text editor? ...

Widget is disposed

Good Mourning everybody I have a main screen, with follows keybindings: shell.getDisplay().addFilter(SWT.KeyUp, new Listener() { @Override public void handleEvent(Event event) { switch (event.keyCode) { case SWT.ESC: shell.close(); break; case SWT.F12: display.syncExec...

Eclipse/SWT: Rectangle taking up entire canvas.

I am writing an Eclipse RCP-based application and am trying to draw a rectangle on top of a ViewPart. However, the rectangle seems to take up the whole screen even when specifiying the bounds. The following is my code. public void createPartControl(Composite parent) { Shell shell = parent.getShell(); Canvas canvas = n...

What GUI toolkit is Cisco's ASDM written in?

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

Opengl drawing in the center of the window

Hi all, I am started to deal with opengl. My application is written in Java using SWT as windowing system. Using http://lwjgl.org/ and SWT, I am able to use opengl in my SWT canvas. I wrote the following simple opengl code in my canvas paint listener: // clear to background color GL11.glClearColor(.3f, .5f, .8f, 1.0f); GL11.glClear(GL...

Using styledText in SWT application

I have a simple question really: SWT documentation says that if you're using styledText, you either implements its API or you implement LineStyleListener. So, If I do use LineStyleListener, how can I still control the representation of specific characters in the editor widget? It seems that implementing LineStyleListener only provides c...

How to synchronise code with the UI Thread in Standard Widget Toolkit

Hi, I keep getting an SWTException that says "Invalid Thread Access" when I try and run my code. I read up and the problem seems to be having code which tries to access SWT objects from outside the UI thread. Specifically I have a table widget and I have added a selection listener. Here is the code for the selection listener. rosterTabl...

what is the order of events that SWT styleText monitors?

There are a lot of events that styleText can listen to and handle using _listeners of different kinds. How can I find out which events fired when? For example, key event, line event, paint event, and so forth. Here are the listeners available: addBidiSegmentListener addExtendedModifyListener addLineBackgroundListener addLineStyleListen...

SWT ExpandListener executes before collapse occurs on Linux

This is a simple executable snippet that shows the issue. When using the ExpandBar the desired outcome is to resize the window when there is a collapse or expand. It works properly on Mac but does not on Linux. It looks like the ExpandListener is called before the collapse/expand actually occurs and therefore the pack() resizes inco...

Hide toolbars in a Excel open within SWT application

Hi, I am looking for a code snippet that hides excel all control bars and menus in an embedded excel sheet. Does somebody have anything like that? Regards, Wojtek ...

How to embed an XUL Application in SWT Browser?

I want to host my XUL application inside another Java application that uses SWT. I know that it is possible to embed the browser windows using SWT.MIZILLA as a flag. But how do I host my XUL application inside that browser window? ...

Method doesn't seem to be running when it is called

I have two classes that should be communicating but they aren't. One is called Chatter and when a listener receives a message within Chatter it should call a method within the second class which is called ClassView. But I don't think the method is being called. Here is the code for Chatter: package instantmessengerplugin; import org....