Questions tagged [swt]
SWT: The Standard Widget Toolkit is a user interface library for Java maintained by the Eclipse Foundation. SWT uses native widgets wherever possible to provide a look and feel consistent with the host platform. SWT is a third-party library (not included in the JVM) and applications that rely on it must distribute the appropriate library for each target operating system. Use this tag for questions about developing SWT based applications.
6,115
questions
0
votes
0
answers
18
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 = ...
0
votes
1
answer
22
views
Is Control.requestLayout() really done asynchronously?
org.eclipse.swt.widgets.Control.requestLayout()
public void requestLayout () {
getShell ().layout (new Control[] {this}, SWT.DEFER);
}
org.eclipse.swt.widgets.Composite.layout(Control[], int) ...
1
vote
0
answers
406
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
0
answers
43
views
Handle custom URL schemes in a Windows Java application
I'm trying to handle custom URLs like "myapp://foo" in a Java app. I added the registry entry and when typing such an URL into a browser, it asks if I want to open it with said app which ...
0
votes
1
answer
50
views
Which Win32 API is responsible for Multiple Display support in Eclipse SWT
I understand that Eclipse SWT is dependent on Win32 APIs in the Windows operating system and GTK in the Linux operating system. As of now, Eclipse SWT in Windows supports the creation of multiple ...
0
votes
1
answer
27
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 ...
0
votes
1
answer
38
views
In my eclipse RCP application i have defined a view which is next to problems view i want that custom view to be opened always and cannot be closed ,
need to remove close button of the view
i.e close button should be disabled/ removed how can i achieve this?
public class ReferencesView extends ViewPart implements ISearchResultViewPart, IPersistable ...
1
vote
1
answer
942
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
0
answers
21
views
SWT Browser#setUrl grabs focus
I have 2 views. View1 has a list and View2 contains a Browser widget. Eclipse 2023/09.
When a selection is made in View1, View2 is triggered to show a PDF related to that selection.
So far so good.
If ...
0
votes
1
answer
30
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
30
views
SWT - New TextLayout created each time text is added in StyledText
My GUI written in SWT gets slower while running.
I found - using Sleak tool - that a TextLayout instance is created each time a character is added in my StyledText instance.
Using the snippet provided ...
0
votes
0
answers
122k
views
Project "xxx" is missing required java project :"org.eclipse.swt"
After getting a new laptop, I had to reinstall Eclipse. Then I imported the workspace backup from the old laptop.
My project ran without errors on the old laptop. I am getting an error, "...
0
votes
0
answers
48
views
SWT Popup Context Menu width issue
I have a org.eclipse.ui.navigator.CommonViewer with various items in my project explorer view and there are different menu contributions for various tree nodes at different levels configured to be ...
0
votes
0
answers
20
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
34
views
SWT Progress Bar
I have a jface Dialog which has some text fields and a SWT progress bar. Once this dialog box opens the progress bar starts updating but it is somehow blocking the GUI and I am unable to enter values ...