Eclipse WindowBuilder Pro - Export Project [duplicate]

0

I'm having a hard time exporting my project with icons.

1st Export - > "Runnable jar file"
2º I mark the first option.
3. When I run on Linux or on a machine other than mine the icons are not displayed at all.

One of the label looks like this:

lblIcone.setIcon(new ImageIcon(
   ".\- Projetos\Pizzaria\src\Icones\ecommerce-and-business-icons\128\company.png"));

Could someone guide me how to solve this?

    
asked by anonymous 09.06.2014 / 01:38

1 answer

0

Resolved:

1st Create a folder in src and then just drag the icons / images into the folder and change the code below:

For label, button etc.

btSair.setIcon(new javax.swing.ImageIcon(getClass().getResource("/deskclin/resources/sair_menu.png")));
    
09.06.2014 / 03:34