I'm new to SWT/JFace. I would like to know if someone could indicate real world apllications based on SWT/Jface but not on Eclipse RCP. I can see lot of examples (come of them very professional) of RCP based apps, but nothing about SWT/Jface standalone.
I would like to start to develop an utility app with these libraries (instead of Swin...
I have a swt form with a browser inside of it. The focus is inside of the form in a silverlight application textbox.
I minimize the swt application.
I maximize the swt application.
I can type in the textbox.
Backspace key doesn't work.
tab key actually tabs to a control on the swt form (the tabstrip which is the first control on th...
When i assign text to my Labels, they wrap around it very tightly, sometimes cutting the lower edges off 'p', 'y' and alike. I would like to have some padding between text and border. I am using a TableWrapLayout for the parent Composite and TableWrapData for the Labels
TableWrapLayout layout = new TableWrapLayout();
layout.numC...
I would like to add a toolbar to my SWT application. The requirements are as follows:
I should be able to create several toolbars
Toolbars should be draggable
I want an option to hide some of the toolbars
I want in general only one line of toolbars
I need to store/restore the system state after application restart.
I used SWT.CoolBar...
In one of my class I have the following code:
private static final Color GREEN = new Color(null, 0, 255, 0);
I know the Display class provide the following method:
Display.getSystemColor(int id)
in order to return "default" system colors instead of instantiating new colors. What is the best solution to get a Display instance in the...
I'm trying to get SWT working with the newest JOGL (2.0).
I tried SWT snippet 209, but it doesn't work. The problem is caused by the following line:
final GLContext context = GLDrawableFactory.getFactory().createExternalGLContext();
...but when I change getFactory() to getFactory(GLProfile.getDefault()) (to make it compatible with th...
As a pet project, I've been playing with the concept of integrating Aero Glass effects into my SWT application. Łukasz Milewski has an excellent blog post explaining how this can be accomplished, which pretty much boils down to this:
final Display display = new Display();
final Shell shell = new Shell(display);
shell.setLayout(new FormL...
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at org.eclipse.swt.SWT.error(SWT.java:3770)
at org.eclipse.swt.widgets.Widget.error(Widget.java:450)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:388)
at org.eclipse.swt.widgets.Compo...
I am using following code to draw scaled image in PaintListener.
e.gc.drawImage(image,
0, 0, w, h,
0, 0, scaledWidth, scaledHeight
);
I want to draw image in gray color.
What could be done for that? Does drawImage support some special parameters for that or I should better prepare and convert original image to be grayed.
...
If I get a bean and a dialog, and they are coupled with bidirectional data-binding, what is the best way to roll back to the original bean when user canceled the editing.
EDIT 1
If user opened up the dialog in edit mode, he then did some modification and pressed "OK", then this dialog closed and the underlying bean got updated. When I...
I want do develop a little game in java and swt.
For this reason, I have to react to KeyEvents.
How can I check if e.g. the up arrow key and 'q' are pressed together?
Thanks in advance
phineas
...
I'm having trouble with the SWT DateTime widget.
I use DateTime, CCombo, and Text boxes as cell editors. CCombo and DateTime may be (and actually, almost always are) taller than the table itself and should extend past the bottom of the table to allow the user to choose any of the entries.
CCombo is doing this fine. If there's a sin...
I am having performance issues with Batik when I try to render SVG files using SWT. It seems like a very bloated library but the only other one I could find was SVGSalamander and it looks like it's Swing only. Is there a way to render the SVGs without converting them to a bitmap form first that's faster? It needs to be cross platform.
...
Anyone has experiences about interfacing with multimedia [or Fn Function] keys in Java?
There seems to be an incomplete discussion regarding multimedia buttons in Java here. There is also a library, JIntelliType, which can be used to register global hotkeys in Windows, but only works for registering globally, not media keys.
...
When using the SWT/AWT bridge to draw Swing components inside an SWT application, can these components benefit from AWT's hardware acceleration?
...
Does anyone know where I can download the javadoc files for Swt and/or JFace?
I do not want the api docs for the rest of Eclipse. I found a place where the docs are available for reading online but I really need them on my local computer.
...
I am in the middle of converting an application that uses swing and awt to draw things to SWT. Since it's sort of overwhelming I'm going through, replacing all references to "awt" to the corresponding swt type. That works for rectangles (only a few methods had to be renamed) but there are some types I don't know how to deal with. If you ...
In the context of displaying databases rows in an SWT VIRTUAL Table I am wondering if created TableItems are ever released by SWT in order for them to be garbage collected ?
Using virtual table allows us not to load the full model into memory by asking on the fly data to the database each time SWT needs it (through the SWT.setData liste...
hi
I have a sash from component of a view which needs to be extended a little. The view lists accounts.
The idea is to show a small notification on top of the component that a certain account is being viewed at the same time. The appropriate listeneres and methods are ready but i got not GUI skills...
Could anybody help me out and sugge...
Outside of the actual SWT listener, is there any way to ignore a listener via code?
For example, I have a java program that implements SWT Text Widgets, and the widgets have:
SWT.Verify listeners to filter out unwanted text input.
ModifyListeners to wait for the correct number of valid input characters and automatically set focus (u...