packagedev.equo;importdev.equo.swt.Config;importorg.eclipse.swt.SWT;importorg.eclipse.swt.graphics.Image;importorg.eclipse.swt.widgets.Display;importorg.eclipse.swt.widgets.Label;importorg.eclipse.swt.widgets.Shell;/** * Demonstrates Label widget with text and image. * This example showcases: * - Creating a label with both text and image * - Loading images from resources * - Basic label styling with border */publicclassLabelSnippet{publicstaticvoidmain(String[]args){Config.useEquo(Label.class);Displaydisplay=newDisplay();Imageimage=newImage(display,LabelSnippet.class.getClassLoader().getResourceAsStream("swt-evolve.png"));Shellshell=newShell(display);shell.setText("Label Snippet");shell.setSize(400,200);Labellabel=newLabel(shell,SWT.BORDER);label.setText("Label with Image");label.setImage(image);label.setSize(200,100);shell.open();while(!shell.isDisposed()){if(!display.readAndDispatch())display.sleep();}image.dispose();display.dispose();}}