6,123 questions
0
votes
0
answers
119
views
App built with Eclipse 4.37 Components, Run From Jar, gets "Libraries for platform win32 cannot be loaded because of incompatible environment" error
I am updating an app that uses the Eclipse components (SWT, JFace, etc) to use the Eclipse version 4.37 components.
The old version didn't use Maven, the new version does.
My problem is, while I can ...
1
vote
0
answers
120
views
Why does copying an SWT Image before its GC is disposed result in a blank/black image?
Using eclipse SWT. When I draw on an image, and then create a copy of it before disposing of the GC, the copied image does not contain the new drawing.
My goal was to create an original image (image1),...
0
votes
0
answers
41
views
How to set SWT CSS THEME preferences in Eclipse RCP product using plugin_customization.ini file?
I use a plugin_customization.ini file for preference customization in Eclipse rcp product.
I added below preference in the file to set dark theme as default but it is not working. Can someone please ...
1
vote
0
answers
39
views
How to use SWT to create a console and avoid thread blocking and program crash?
I used SWT to make a Java desktop application, and used StyledText as the console.
For ease of operation, I encapsulated it into a category.
public class Console {
private static StyledText ...
0
votes
1
answer
66
views
Eclipse TextMergeViewer not showing content?
The following always shows a blank / empty TextMergeViewer:
public class SSCCE extends Dialog {
protected SSCCE(Shell parentShell) { super(parentShell); }
protected Control createDialogArea(...
0
votes
0
answers
51
views
Why Doesn't -debug Work the Same in My RCP Application as in Eclipse?
I added the -debug flag and specified an .options file path in MyRCPApplication.ini. However, when I launch my RCP application, a command prompt window pops up before the application starts, but it ...
0
votes
0
answers
41
views
Where is SWT home page now?
while trying to stay up to date with the SWT API, I went to SWT home page at https://www.eclipse.org/swt/ and got a 404 error. Is the project dead (or dying) or is it moving elsewhere?
Thanks
Quick ...
1
vote
1
answer
151
views
Resurrect old Java project with SWT and Maven
I am trying to resurrect some old code from the Java 1.5 era. Maven (which I am not super familiar with) is the build tool, probably an older major version. The old code also uses SWT, which I am ...
0
votes
0
answers
36
views
Is there a way to make one top shell always on top of another top shell?
There are two Shells A and B created using the SWT.ON_TOP style, is there a way to make A always on top of B?
0
votes
2
answers
281
views
Equo Chromium browser for Java/SWT crashes on Ubuntu
I have a Java/SWT program, and I am using the standard Browser widget that comes with the SWT library. Due to its shortcomings (more about that if you're interested), I am considering switching to ...
0
votes
0
answers
58
views
Closing Shell will result in missing events
Sample code:
public class Test {
private static Listener listener = e -> {
String type = null ;
switch ( e.type ) {
case SWT.MouseDown -> type = "...
0
votes
0
answers
58
views
What's a good way to notify ScrolledComposite to make adjustments?
When ScrolledComposite's content changes, we can call the ScrolledComposite.setMinSize() method to adjust the ScrollBars of the ScrolledComposite. For example:
Shell shell = new Shell() ;
shell....
1
vote
1
answer
3k
views
Getting java.lang.UnsatisfiedLinkError: Could not load SWT library with Eclipse latest version and the installer
After a recent update, I'm now not able to run Eclipse on Windows and am getting the following error:
---------------------------
Eclipse
---------------------------
An error has occurred. See the log ...
0
votes
0
answers
41
views
How to know when a control's visible state has changed?
The visible state of a control may change depending on the visible state of its parent control, how do I know this?
For example
Display display = Display.getDefault() ;
Shell shell = new Shell( ...
0
votes
0
answers
22
views
How to delay layout during DND?
I'm writing a feature that allows the user to create controls by dragging and dropping, similar to Keynote.
The simplified code is as follows :
Display display = Display.getDefault() ;
Shell shell = ...
3
votes
0
answers
1k
views
Fresh download of Eclipse 2024_06 will not launch, complaining of missing SWT library
All I did was unzip and launch Eclipse 2024_06 and it cannot find swt libraries which you would think SHOULD be in one of the plugins.
java.lang.UnsatisfiedLinkError: Could not load SWT library. ...
0
votes
1
answer
59
views
NatTable custom Cell Painter for Choice Chips
I want to be able to render some Choice Chips inside a NatTable cell. For that I would need a custom cell painter to be able to paint the widgets. Unfortunately, I am not very experienced with ...
1
vote
1
answer
1k
views
Problematic frame: # C [libwebkit2gtk-4.0.so.37+0xd4f568]
STS-4.21.1 just started crashing when on-hover window is triggered; the crash is at:
# C [libwebkit2gtk-4.0.so.37+0xd4f568]
STS-4.22.0 is also affected:
# C [libwebkit2gtk-4.1.so.0+0xd600d8]
Fault
...
0
votes
1
answer
41
views
Java8: SWT panel updates occur AFTER long task is finished althogth it's a concurrent thread
I have a SWT panel where I set a root folder and some parameters, and I want to do some calculations on each of the files found (DocumentTree).
After each file processing, it should update the panel ...
0
votes
0
answers
27
views
Is there a way to check the Mac version using Platform.OS on Windows?
In the code I'm currently writing, I've written to provide a buffer to improve drawing performance on MacOS BigSur.
Example code is as follows.
class EcoreGridEditPane<PayloadType extends EObject&...
0
votes
0
answers
85
views
Java 16 app : ignore windows zoom/scaling
i develop a java16 app, and i need to make it dpi/scale/zoom independant for the users, meaning whatever the windows parameters they choose (100%, 125%, 150% often recommended on laptops, also it can ...
0
votes
1
answer
53
views
Gradient color for cells in NatTable using Style() and not CSS
I'm trying to apply a gradient in my Row Header and Column Header in NatTable. In the NatTable examples I can see that a CSS file has been used to apply gradient color in DarkExample. However I'm more ...
0
votes
0
answers
51
views
SWT.SetData listener not listening when calling table.redraw() in Java SWT project
I have a application which has virtual table, in that table when user search for a keyword and it shows list of available document that match that keyword in that table. When user click the header of ...
0
votes
0
answers
83
views
How to add Checkbox to table column Header in SWT Java?
In my application, I have a Virtual Table, in that table I have number of columns which is used to list available documents in a Directory, in that table 1st column has checkbox, where we can select ...
0
votes
1
answer
46
views
Underline below the name of CTab
image
I am using Java SWT, and i have created a dialog box to take input from the user.
Inside the dialog box i have created two tabs using "CTabItem".
So initially when i open the dialog ...