I'm trying to use drag-n-drop with an embedded SWT Browser, so that my application can drag hyperlinks from the Browser to another Control. I've been able to set up the destination to receive data from an external browser, but the internal does not seem to participate in the drag-n-drop. Any ideas?
I would guess that I need something ...
I have a form that is divided into two classes. Each class represents the widgets on part of the form. What is the best way to allow these classes to share data between each other and update each other.
Example:
Button in class A is clicked. Update text field in class C
...
Hi folks
I wonder someone has any idea how to solve this:
In my Java Eclipse plugin there are some processes which take some time. Therefore the user might minimize the window and let the process run in the background.
Now, when the process is finished, I can force the window to come to the top again, but that is a no-no in usability. I'...
In my case I have two children of a SashForm, but the question applies to all Composites.
class MainWindow {
Sashform sashform;
Tree child1 = null;
Table child2 = null;
MainWindow(Shell shell) {
sashform = new SashForm(shell, SWT.NONE);
}
// Not called from constructor because it needs data not availabl...
What are some good design patterns for creating a form in java?
I have an app that has 6 tabs with a different form in each. How does the typical java programmer go about making these items accessible?
For example as a wpf programmer I might databind all these controls to underlying objects.
What do java programmers like to do?
...
I have a control which is listened for both mouseDown and mouseDoubleClick events. However when mouseDoubleClick occure, I don't need mouseDown event to be handled. (Now both events fired when doubleClick happens)
How can I stop handling mouseDown event when mouseDoubleClick occured?
...
Hello,
Here's the deal. I'm just starting with Java programming, I've made a simple application that uses SWT graphic library and I want to deploy it on a Mac (running the latest version of MacOS X).
I did all the programming in my Windows 7 machine, so here are my questions:
Q1) Can I make an executable file for MacOS X from my Window...
I'd like to implement "Always on top" configuration option in my application that takes effect immediately.
I know that I can call Shell constructor with ON_TOP style. Is there a way to do that at runtime, that is after Shell instance has already been created?
...
Hey all,
Is it at all possible to add custom key bindings to buttons in SWT? I can't use & in the text of the button to set a mnenomic because my buttons have no text (only an image). Is there a good way to do this using key listeners or is there something like the input/action map in swing?
Thanks in advance.
...
I have an application that prints the contents of a URL (to a physical printer) at a certain point. I want this to happen automatically and without further user input. I am using SWT to load the URL into an SWT browser (that works int he background only - it is not visible) and print. The sole problem at this point is that the server wan...
This Eclipse bug mentions something called CTabFolderPageManager, which seems like it could be useful for me. However, searching for CTabFolderPageManager doesn't give any results. Is it a future feature for SWT (given that the bug report is from 2007, this would be surprising)? Or did I just fail at searching for it?
...
iam using the swt java library and iam having a problem.
the gc draw arc method takes the following arguments
GC.drawArc(int x, int y, int width, int height, int startAngle, int endAngle);
but i want to be able to draw the arc using 3 arguments : the source ,destination and
control points.
is there any formula to convert between tho...
I have a Windows Mobile application written in Java that uses AWT for the user interface. I am looking at porting the UI to SWT. I got a hold of the SWT libraries for windows mobile and I started looking at what work will be involved in actually porting it over. I think the first thing I have to decide is how to handle a large number ...
Hi
Do someone know how to hide such help image from my custom wizard?
setHelpAvailable(false) doesn't work, it hides "rectangular help button", not this image.
Thanks
...
we are developing an SWT/RCP(Eclipse 3.5) application on both Windows and Linux (on identical hardware).
The application is a GIS app which shows several layered maps(PNG images) rendered with alpha blending.
org.eclipse.draw2d.Graphics.setAlpha(...);
org.eclipse.draw2d.Graphics.drawImage(...);
On Windows the performance is pretty goo...
I'm making an application that has many lines of data coming back from a Database stub(which will become an Oracl database), and for some reason the srcoll bar stops at about the 500th element. I'm wondering if there's anyway to have all the elements show within the scroll bar.
...
This piece of code (in Scala)
val contents = {
assert(mainWindow.detailsPane != null)
new Composite(mainWindow.detailsPane, SWT.NONE)
}
throws an exception:
Exception occurred
java.lang.IllegalArgumentException: Argument not valid
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
...
Hi there...
I'm working on an eclipse rcp application and want to avoid this effect when opening a new editor:
http://www.fotos-hochladen.net/stackededitorsfcpt3zoq.png
and want to achieve this effect programmatically:
http://www.fotos-hochladen.net/separareeditorsmv58nzua.png
Has anyone an idea how this can be achieved?
Thanks! :...
Hi there,
I am using the RCP Splash Screen along with the built-in ProgressBar (AbsolutePositionProgressMonitorPart). The splash image has a blue background color, but the background of the progressbar seems to be white, which leads to some white corners.
There is no "setBackground" on BasicSplashHandler nor does getContent().setBack...
How do I ensure when I distribute a JAR-file that the proper SWT-library (either the windows, the linux or mac version) is loaded an ready to use?
It would be very helpful because then you can do one export and your application can run on any platform like Swing apps usually do.
Thanks a lot
...