Skip to content

Chrriis/SWTSwing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SWTSwing

image

SWTSwing is a port of the SWT toolkit to run on Swing.

Here is an example of Eclipse, running on Swing, with the excellent FlatLaf look and feel: image

Is it bug-free? No. Will it solve your problem? Probably not. But it is cool.

Running Eclipse on Swing

  • Download eclipse-SDK-4.20-win32-x86_64.zip
  • Go to the "<eclipse-SDK-4.20>\plugins" folder, move these 2 plugins to the parent folder:
    • org.eclipse.e4.ui.swt.win32_1.1.0.v20201119-1132.jar
    • org.eclipse.swt.win32.win32.x86_64_3.116.100.v20210602-2209.jar
  • Copy SWTSwing.jar to <eclipse-SDK-4.20>.
  • Run the following command:
jdk_11\java.exe -Dosgi.parentClassloader=app -cp SWTSwing.jar;plugins\org.eclipse.equinox.launcher_1.6.200.v20210416-2027.jar org.eclipse.swt.widgets.Display org.eclipse.core.launcher.Main
  • If you want to run Eclipse with the FlatLaf look and feel, place the flatlaf.jar in <eclipse-SDK-4.20> and run:
jdk_11\java.exe -Dswt.swing.laf=com.formdev.flatlaf.FlatLightLaf -Dosgi.parentClassloader=app -cp SWTSwing.jar;flatlaf.jar;plugins\org.eclipse.equinox.launcher_1.6.200.v20210416-2027.jar org.eclipse.swt.widgets.Display org.eclipse.core.launcher.Main

Contributing

You're encouraged to contribute to SWTSwing. Fork the code from github.com/Chrriis/SWTSwing and submit pull requests.

License

This library is provided under the Eclipse Public License, version 2.0.