swt

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

心已入冬 提交于 2020-01-13 19:08: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.

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

南楼画角 提交于 2020-01-13 19:06:24
问题 (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.

Sleak SWT tool, Device is not tracking resource allocation

爱⌒轻易说出口 提交于 2020-01-13 18:36:46
问题 I'm having trouble in testing an RCP application with Sleak because it does not display anything, it only shows the message "WARNING: Device is not tracking resource allocation". I've setup Sleak from this tutorial and I don't know what's wrong. Does anyone know a solution for this? Thanks in advance. 回答1: Do you have the correct version? Can you see the sleak view in your RCP-application? If not make sure it's in your launch configuration. Also double check that you have set the org.eclipse

Wrap abel within a composite

孤街醉人 提交于 2020-01-13 03:23:28
问题 I have ScrolledComposite which allows only vertical scrolling. ( heighthint = 400 ). Within this ScrolledComposite, I have another CompositeA (height may exceed 400 for scrolling) to store all other widgets. I have a very long label (with SWT.WRAP enabled). But instead of wrapping, it is always showing in a single line. I want this label to wrap according to the width of its parent ( CompositeA ) I forgot to add that this CompositeA is a 2 column GridLayout with makeColumnsEqualWidth = true .

swt TableViewer

我的未来我决定 提交于 2020-01-12 05:02:52
http://blog.163.com/bluefield_wild/blog/static/8182709520085612235336/ package list; import java.util.ArrayList; import java.util.List; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.viewers.ColumnPixelData; import org.eclipse.jface.viewers.ILabelProviderListener; import org.eclipse.jface.viewers.IStructuredContentProvider; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.ITableLabelProvider; import org.eclipse.jface.viewers.TableLayout; import org.eclipse.jface.viewers.TableViewer; import org.eclipse.jface.viewers.Viewer; import

Eclipse Rcp系列 http://www.blogjava.net/dreamstone/archive/2007/02/08/98706.html

微笑、不失礼 提交于 2020-01-11 23:00:49
Eclise Rcp 系列一 第一个SWT程序 写在开始: 由于工作须要,做了一周时间的Rcp开发,发现由于Eclipse开发方面的中文资料较少,对入门者来说有些困难, 所以把自己一周的内容放上,共享给开始学习Eclipse开发的人 Eclipse开发中有很多名词: 插件开发 ,RCP ,SWT,Jface很容易让人迷糊 做个大概的比喻,如果说SWT是C++的话 那么JFace就像STL对SWT做了简单的封装 Rcp就像MFC封装更多 而插件开发和Rcp唯一不同就使导出不同,一个导出成plug in,另一个导出成独立运行的程序。其实没有什么区别 好了,开始第一个程序,从Hello world开始。写到这个地方,再次崇拜一下第一个写Hello world的人。 真应改给他搬个什么普及教育之类的奖项。 import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Shell; public class HelloSWT { public static void main(String[] args) { Display display = new Display();

OS X Java .app bundle cannot open other apps?

南楼画角 提交于 2020-01-11 13:40:06
问题 I've written a Java SWT application for OS X, exported it as a .jar and bundled it into .app. Everything works just as expected except for a critical part within my app; it requires to open other apps. I've tried Runtime.exec(); as well as ProcessBuilder to do this, calling the open command on the other apps that I require to launch. This works perfectly fine from Eclipse or if I launch my exported .jar through Terminal. It does, however, not work when started by double-clicking the .app. I'm

Drawing on a transparent image using Java SWT

不羁的心 提交于 2020-01-11 00:06:26
问题 How do I create an in-memory fully transparent SWT image and draw a black line on it with antialias enabled? I expect the result to include only black color and alpha values ranging from 0 to 255 due to antialias... I googled and tried everything that I could... is this possible at all? 回答1: This is how I did and it works: Image src = new Image(null, 16, 16); ImageData imageData = src.getImageData(); imageData.transparentPixel = imageData.getPixel(0, 0); src.dispose(); Image icon = new Image

Replicating Mouse behavior in Code

安稳与你 提交于 2020-01-07 05:47:07
问题 This is related to question: Focus problems with JDK7 and native components. While working on workarounds we noticed that if we clicked on another component on the window (i.e. a label showing a picture) and then click on the text fields (within the Flash application), everything seemed to work fine. So I've been trying to reproduce that from code but haven't been successful. Basically, when the mouse is detected hovering over the text box I get notified from the Flash program and I request

How do I Set a Key and a Value in a JFace ComboViewer?

99封情书 提交于 2020-01-07 04:25:10
问题 I am trying to set up a combo box that will display a UserName, but when selected will send a an ID instead. I have already set up a method that queries my Derby database and returns a multidimensional array with the UserNames and IDs. I did some research on how to set this up and found several posts suggesting JFace, but nothing on how to accomplish this. I have tried setData(String Key, Object Value), and add(String String, int index). I have also looked at DataBinding, but haven't found