Alejandro,
You need to follow these steps to export as JAR file, right click on the java file > Select Export > Select Runnable JAR file under Java and click Next > Select the Launch configuration and the destination, make sure that the ‘Export required libraries into generated JAR’ is selected > Click Finish.
If you are still seeing issue, please attach the java file (Swing application) that exhibits this issue to help us investigate further.
Let us know how it works for you.