SWT « Graphics « Java Swing Q&A





1. SWT composite - redraw problem    stackoverflow.com

I have a composite element, that initially has a Label. Now I call dispose on the it (the label) and create another label in the same container (composite elm), but I ...

2. Java AWT/SWT/Swing: How to plan a GUI?    stackoverflow.com

I've already realized some applications with a small graphical user interface. Nothing complex, but I've encountered several problems that components aren't displayed or just not behaving as expected. Now my question: How do ...

3. How to draw a diary in swt    stackoverflow.com

Hey, I am searching for a good mode to develop a application which shows 7 days and 24 hours (weekly view), knows somebody if there is a good tutorial? Or which layout ...

4. SWT COLOR    coderanch.com

5. SWT Graphics Chapter    coderanch.com

6. [SWT] Sash (Widget) repaint problem    coderanch.com

I have two trees on the left and right side separated by a sash. On the Sash I paint some lines that will show correlated elements in the trees. The listeners and the painting works well. I Use a GC to Draw on the sash. When my data changes, I will recalculate the line positions and draw on a cleared sash. ...

8. Printing using SWT Urgent    coderanch.com

Hi Ranchers, I am using SWT for printing capability in my application. What i am doing is creating a png image and then saving as printImage.png then giving command public void printImage(String path) { try { String fileName = "uggg"; if (fileName == null) { return; } // Load the image ImageLoader loader = new ImageLoader(); ImageData[] imageData = loader.load("printImage.png"); if ...

9. SWT repaint problem    coderanch.com

i have a strange problem in SWT: when I dispose some widgets and place new widgets on a composite then the newly created widget is not visible. an example is attached in the screenshot on the left side of the picture. BUT: at the moment I resize my screen, suddenly the control pops-up. as you can see on the right side ...





10. SWT printing works on Windows but not on a Linux machine    coderanch.com

Here is my code for displaying the printer dialog and the printing public void initializeAndPrint() { // Create printer selection dialog and open it PrintDialog printDialog = new PrintDialog(shell, SWT.APPLICATION_MODAL); PrinterData printerData = printDialog.open(); // Check if OK was pressed if (printerData != null) { printerData.orientation = pageOrientation; // Create new Printer instance Printer printer = new Printer(printerData); // Open printing ...

11. Facing problems printing a ScrolledComponent in SWT    coderanch.com

Hi , I am facing problems printing a ScrolledComponent in SWT . I am able to print the contents that are visible but not able to print the contents below the scroll . This happens for both vertical and horizontal scroll . Can some one please suggest how to proceed . Thanks in Advance

12. How do I take a variable and print it to a cursor using SWT?    coderanch.com

I am rewriting an application in Java from the Processing IDE to Eclipse. In Processing I have been able to get a variable printed to the cursor using the following code: import processing.serial.*; import java.awt.*; import java.awt.event.*; Robot robot; try { robot = new Robot(); } catch (Throwable t) { t.printStackTrace(); exit(); // If there is an exception here, we might ...