swt

Native status bars

微笑、不失礼 提交于 2019-12-03 02:20:40
Is there a way to create native status bars in SWT like those found in Windows applications: I have seen status bars simulated using labels, but I am more interested in a true solution. org.eclipse.jface.action.StatusLineManager.createControl(), or getControl(), returns a status line control. This control is, of course (being SWT), native. Looks like long standing change request: https://bugs.eclipse.org/bugs/show_bug.cgi?id=88837 GrahamA There is a status bar available in JIDE Components but I'm afraid you will have to pay for it. I'm not affiliated with JIDE but I do licence their products

Stroke Width Transform (SWT) implementation (Python)

匿名 (未验证) 提交于 2019-12-03 02:16:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Can anyone describe how can i implement SWT in python using opencv or simplecv ? 回答1: Ok so here goes: The link that has details on the implementation with the code download link at the bottom: SWT For the sake of completeness, also mentioning that SWT or Stroke Width Transform was devised by Epshtein and others in 2010 and has turned out to be one of the most successful text detection methods til date. It does not use machine learning or elaborate tests. Basically after Canny edge detection on the input image, it calculates the thickness of

Change just the font size in SWT

匿名 (未验证) 提交于 2019-12-03 02:14:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to use a larger font for one of the labels. label.setFont( new Font(display,"Arial", 14, SWT.BOLD ) ); but obviously Arial is not always the default font. I want to change just the size and keep everything else at default values. Can I do something like label.setFontSize( 14 ); to avoid setting the other parameters? Or can I at least find out the name of the font that is actually being used as default? 回答1: I believe you could do something like FontData[] fD = label.getFont().getFontData(); fD[0].setHeight(16); label.setFont( new Font

How do you build an SWT application with Maven

匿名 (未验证) 提交于 2019-12-03 02:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I trying to learn swt, and I use maven for all my builds and eclipse for my IDE. When getting the swt jars out of the maven repository, I get: Exception in thread "main" java . lang . UnsatisfiedLinkError : no swt - pi - gtk - 3034 in java . library . path at java . lang . ClassLoader . loadLibrary ( ClassLoader . java : 1709 ) at java . lang . Runtime . loadLibrary0 ( Runtime . java : 823 ) at java . lang . System . loadLibrary ( System . java : 1030 ) at org . eclipse . swt . internal . Library . loadLibrary ( Library . java :

swt browser No more handles Error

匿名 (未验证) 提交于 2019-12-03 01:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I wrote a simple program. just a CTabFolder and a WelcomTab inherent from CTabItem. I want to fill my WelcomeTab by a browser which render my htmls. at the init() method of WelcomeTab I Create a Browser but when program want to construct it I get this Error Exception in thread "main" org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)] at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.browser.Mozilla.initMozilla(Unknown Source) at org.eclipse.swt.browser.Mozilla.create(Unknown Source) at

SWT Exception when running jar: Exception in thread “main” org.eclipse.swt.SWTException: Invalid thread access

匿名 (未验证) 提交于 2019-12-03 01:54:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When executing my jar from terminal I am getting the following: ***WARNING: Display must be created on main thread due to Cocoa restrictions. Exception in thread "main" org.eclipse.swt.SWTException: Invalid thread access at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.widgets.Display.error(Unknown Source) at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source) at org.eclipse.swt.widgets.Display.create(Unknown Source) at org

SWT Invalid Thread Access on Mac OSX (Eclipse Helios)

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have the simplest of all simple SWT programs (it doesn't even display hello world yet): package com.samples.swt.first; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; public class Main { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } display.dispose(); } } When I run this on Mac OSX from Eclipse Helios, I get the following error: ***WARNING: Display

Cannot load 32-bit SWT libraries on 64-bit JVM

匿名 (未验证) 提交于 2019-12-03 01:44:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My computer is win7 64 bit, and jdk is 1.7.0.21,jvm is 1.6.. and 64 bit I want to run SWT application and export as runnable jar file . When I run the application, it has the exception that Cannot load 32-bit SWT libraries on 64-bit JVM, so I import the SDK as alternate jre just like you point at Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file ) , and in Eclipse, the application can run correctly, but when I edit the bat file to run the jar file, it always has the problem like Cannot load 32-bit SWT libraries on 64-bit

no swt-mozilla-gtk-4332 in java.library.path

匿名 (未验证) 提交于 2019-12-03 01:35:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: (See update at bottom for new information.) I have a Java SWT application that includes an integrated browser. Everything works fine on Windows and on CENTOS 6.5. I was asked to get the application to work on a new computer to which I installed CENTOS 7. I keep receiving the no swt-mozilla-gtk-4332 in java.library.path error message. I am aware of the various pages that talk on this issue. For instance: StackOverflow 10165693 , 6518568 , 7130980 Jazz.net , Eclipse.org I am using Firefox 24.8.0. That came with CENTOS 7. I just updated all the

SWT Table checkbox for all columns

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to create a two-column-table with checkboxes in both of them I have created a table with the following snippet: Table table = new Table(parent, SWT.CHECK | SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL); TableColumn tableColumn = new TableColumn(table, SWT.NONE); tableColumn.setWidth(300); tableColumn.setText("Check Column1"); TableColumn tableColumn1 = new TableColumn(table, SWT.NONE); tableColumn1.setWidth(300); tableColumn1.setText("Check Column2"); TableItem tableItem=new TableItem(table,SWT.NONE); Image image=getImage(imagePath);