swt

SWT Table.setLinesVisible(false) does not seem to work on Windows 7

て烟熏妆下的殇ゞ 提交于 2020-01-29 21:47:50
问题 Our company is trying to move everyone from Window XP to Windows 7, so I'm testing some of the home-grown SWT applications to make sure that they still work on Windows 7. Most of them still do, but there's some weird quirks. I've been able to work out most of them, but the one here I'm having no luck with. SWT Tables always seem to have an ugly black line between columns. I've tried calling setLinesVisible(false), but to no avail. I know this doesn't seem like an important difference, but our

SWT Browser navigator version

邮差的信 提交于 2020-01-25 00:34:09
问题 Even if my Windows has the latest version of IE, the SWT Browser still runs on version 5.0 (yes, FIVE). At least that's what a simple alert(navigator.appVersion) says so. System.setProperty("org.eclipse.swt.browser.IEVersion", "8000"); does not work -Dorg.eclipse.swt.browser.IEVersion 8000 does not work I don't necessarily need v10.0 to work, but at least a DECENT version SWT.MOZILLA and SWT.WEBKIT are out of the question. XULRunner gives headaches SWT v3.8.1 Edit: Actually, now that I think

SWT TreeViewer is slow when filling with many elements

时间秒杀一切 提交于 2020-01-24 14:13:46
问题 I'm new in the java world, so I'm sorry if my question is trivial. I'm developing a Eclipse view part, and I'm filling a SWT tree view with the following data structure. All data is in memory: Node1 Child1 Child2 Node2 Child1 ... Child2915 I think that is not a very big tree, but it is slow being drawn (10 seconds). I have manage trees in .NET with more than 10.000 elements and it loaded smoothly. I don't know if I've implemented the code, but the same problem appeared in .NET if I did not

Trying to run an SWT based GUI on Raspberry Pi

南楼画角 提交于 2020-01-23 12:12:52
问题 I have developed an SWT GUI on Eclipse on Windows and now I am trying to move it to Raspberry Pi. I am searching for the SWT library for Raspberry. I have Raspbian on in RPi. Does that mean that I need the SWT library for ARMHF? If yes, how can I import it to my program and can I compile and export the jar on the shell instead of Eclipe (because RPi has 512 MB which is not enough to run Eclipse efficiently)? Thanks 来源: https://stackoverflow.com/questions/23321092/trying-to-run-an-swt-based

Trying to run an SWT based GUI on Raspberry Pi

蓝咒 提交于 2020-01-23 12:12:13
问题 I have developed an SWT GUI on Eclipse on Windows and now I am trying to move it to Raspberry Pi. I am searching for the SWT library for Raspberry. I have Raspbian on in RPi. Does that mean that I need the SWT library for ARMHF? If yes, how can I import it to my program and can I compile and export the jar on the shell instead of Eclipe (because RPi has 512 MB which is not enough to run Eclipse efficiently)? Thanks 来源: https://stackoverflow.com/questions/23321092/trying-to-run-an-swt-based

Positioning Toolbars in Eclipse/RCP

北慕城南 提交于 2020-01-23 06:53:07
问题 I was working on my tiny RCP app, which needs a custom perspective switcher to control which views the user can access. So here I am, trying to add a toolbar with a couple of buttons to switch perspectives. I figured the best way to have some control over the stuff would be to add a second toolbar in ApplicationActionBarAdvisor which would call my thee actions/commands to switch perspectives. So let's say I create a second ToolBarContributionItem in the fillCoolBar method, which would look

Positioning Toolbars in Eclipse/RCP

早过忘川 提交于 2020-01-23 06:52:26
问题 I was working on my tiny RCP app, which needs a custom perspective switcher to control which views the user can access. So here I am, trying to add a toolbar with a couple of buttons to switch perspectives. I figured the best way to have some control over the stuff would be to add a second toolbar in ApplicationActionBarAdvisor which would call my thee actions/commands to switch perspectives. So let's say I create a second ToolBarContributionItem in the fillCoolBar method, which would look

Java SwingWorker while using SWT

杀马特。学长 韩版系。学妹 提交于 2020-01-22 03:50:07
问题 I have a problem as follows: I've written a simple minimalistic Application that utilizes the SWT for the GUI. In a specific tab, where it displays a table that get's filled with Informition via a REST Api Call. Additionaly, i have another method to export this table into a CSV-file. This works absolutely fine. Now I need some kind of autoupdate/-export for which I implemented a Swing-Worker like this: protected class AutoExportWorker extends SwingWorker<Integer, String> { @Override public

JAVA, SWT Local variable i defined in an enclosing scope must be final or effectively final

余生颓废 提交于 2020-01-22 03:34:05
问题 I'm trying to create an i*j number of buttons. On each button I want to add an mouseUp action, but I get an error. I tried to create a "Line" class to handle the listener event but failed. This is what I currently have: protected void createContents() { // Connect to prolog engine Query.hasSolution("use_module(library(jpl))"); // only because we call e.g. jpl_pl_syntax/1 below String t1 = "consult('dots_lines.pl')"; Query.hasSolution(t1); // Build GUI shell = new Shell(); shell.setSize(450,

How to detect ctrl-f in my SWT application

佐手、 提交于 2020-01-19 07:27:45
问题 I have written an SWT UI which has a primary function of displaying text in a StyledText control. I want to add a handler for Ctrl + F so that when that shortcut is pressed the focus is set to a search box. I have tried using the following code to detect the keypress. sWindow = new Shell(); ... sWindow.getDisplay().addFilter(SWT.KeyDown, new Listener() { @Override public void handleEvent(Event e) { System.out.println("Filter-ctrl: " + SWT.CTRL); System.out.println("Filter-mask: " + e