swt

Graph visualization libraries for SWT/AWT

一笑奈何 提交于 2019-12-03 08:28:06
Is there a mature, solid open-source graph visualization library implementation for SWT or AWT (I am referring to sets of vertices connected with edges, not charts and diagrams)? Which one do you use/recommend? I saw Zest for SWT, but could not find a Maven repository for it. Thank you. I recommend Prefuse: http://prefuse.org/ Have a look at JUNG ( http://jung.sourceforge.net/ ) If you don't want to use Zest (which I prefer), there is still Draw2D : Draw2D Also, there is a good tutorial on this available here: Display a UML Diagram using Draw2D Finally, I found this Maven repository:

can I combine SWT GridLayout and FillLayout

走远了吗. 提交于 2019-12-03 08:03:07
I have an RCP/SWT application in which I'm trying to construct a view out of existing composites. One is a FillLayout composite, the other uses GridLayout. I'd to like to end up with a view in which the GridLayout composite is lined up to the left of the FillLayout composite (think vertical banner) and is about 10 percent the width of the entire view, with the existing FillLayout composite comprising the other 90 percent. I'm not sure if it is possible in SWT to combine layouts, but I'm thinking something like a GridLayout with two columns. Column one would contain the GridLayout widget and

SWT Table with variable row height: Working on Linux, but not Mac/Windows

非 Y 不嫁゛ 提交于 2019-12-03 07:35:34
Problem: I need an SWT Table (JFace TableViewer) with variable row height. In fact, I solved this on my development machine (running Ubuntu 10.10). Unfortunately, this doesn't work on Windows nor on Mac. Initially, I thought I didn't use the libraries correctly. But by now I fear that what I want to do is simply not possible on Windows. I hope someone here convinces me otherwise. To reproduce: rather than providing my code here, I built a minimal program to reproduce the problem. I started with the following Snipplet: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/examples/org

SWT Button Dropdown Control

半腔热情 提交于 2019-12-03 07:27:18
Is there a standard SWT control that resembles a button which displays an arrow and opens a dropdown menu when pressed and is not a toolbar-only control ? It would be something like this: It is similar to a combo box control, except that the "button" area would act more similarly to an actual button - its text would not change based on your selection, it would appear depressed when clicked, and the items would be used for actions or navigational purposes instead of for selection. It's also similar to a control available for toolbars, but I need to use it on a regular composite instead. This is

How to talk to a Javascript function from SWT

北慕城南 提交于 2019-12-03 06:51:24
My HTML file has a javascript function xxx_return(), which will return a string value. Is there any way i can take this value from Java layer?. I am using SWT shell to display this html. Does SWT carry any feature to get the return values of a script function? edit: My code is something like below: package test.html.simulation; import org.eclipse.swt.SWT; import org.eclipse.swt.SWTException; import org.eclipse.swt.browser.Browser; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; public class BrowserExample{ public static void main(String[] args) { Display display =

How do I add an icon as a classpath resource to an SWT window created with WindowBuilder?

只谈情不闲聊 提交于 2019-12-03 06:19:51
I'm trying to add an external icon from an *.ico file to a window that I'm creating using the WindowBuilder design window. I can select the shell, which brings up an "image" properties field. That brings up the image chooser dialog box: How do I make my icon show up in this menu as a classpath resource? The image works if an absolute path is given, but I don't want to use that option in my application. Thanks! To easily add an icon to my classpath, I found my desired icon, right clicked it, selected "copy", then went to one of the packages of my project in Eclipse, right clicked, and selected

Rapid switch to Java for an experienced C++ developer [closed]

爷,独闯天下 提交于 2019-12-03 05:40:31
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm am looking for online tutorials/books, which assume a solid knowledge of OOP/Design patterns concepts and stress on differences (both conceptional and syntactical) between C++ and Java thus allowing for a rapid development in the latter. Thank you very much in advance, appreciate your time. 回答1: I moved from

Easiest way to unit test SWT and Swing apps in a headless environment?

淺唱寂寞╮ 提交于 2019-12-03 05:28:44
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 I run them in my hudson environment it fails since hudson runs the tests in headless mode. What's the best way of doing this? Open source solutions only please (since the project is open source). You could run Xvfb (X virtual framebuffer, an X11 server that performs all graphical operations in memory) and this works fine. But there is another solution with Hudson's plugin for Xvnc. Simply install the plugin and check the checkbox in the job

Java 7 update 45 broke my Web Start SWT application

半腔热情 提交于 2019-12-03 04:56:07
I maintain an Eclipse RCP application launched with WebStart. Java 7 u45 made some security changes, and now my application crashes on startup. I've added to the manifest: Permissions: all-permissions Codebase: * Trusted-Library: true This removed all of the warning messages from the Control Panel. But I still have a classloader issue when trying to load my IApplication implemenentation, probably the first of my classes to load. This is new to update 45. I have experienced the same issue and managed to solve it by doing following: In all manifest files (for each JAR in your RCP project) add

SWT: How to do High Quality Image Resize

梦想的初衷 提交于 2019-12-03 04:23:47
My application needs to resize ImageData. Unfortunately, I haven't gotten the results I want with GC (with antialias on and interpolation on high), or ImageData.scaledTo(). The resulting image is of too low a quality to be acceptable. What's the best way to do a high quality ImageData resize? Edit: I'm scaling down. AWT offers image scaling with different modes. For downscaling, Area Averaging offers the best quality. One could of course re-implement the area averaging scaling algorithm for SWT, or, for a quick solution which often suffices: convert the SWT image to an AWT image rescale it