SWT « Event « Java Swing Q&A





1. Java Interface for Multimedia Keys    stackoverflow.com

Anyone has experiences about interfacing with multimedia [or Fn Function] keys in Java? There seems to be an incomplete discussion regarding multimedia buttons in Java here. There is also a ...

2. Handle key presses using swt    stackoverflow.com


I'm want do someStuff() when CTRL-C pressed. I had wrote some code, but it "not enough good". What can I do with it?)

    //org.eclipse.draw2d.Shape getShape(){....}

    ...

3. Understanding Gui and Listeners    stackoverflow.com

I'd like to ask you couple of question about Gui. I saw the following example:

public class ShellWithButton {
    public static void main(String[] args) {
    Display display ...

4. How enable operating correctly traversal keys UP ARROW and DOWN ARROW in Nebula SWT widget DateChooserCombo?    stackoverflow.com

When I try implement TraverseListener and run program then key AP ARROW (or DOWN ARROW) stop on button (button for popup calendar, default left side) in DateChooserCombo widget. How implement this listener with key ...

5. SWT Events    coderanch.com

6. Comparison, not Competition of SWT/JFace in Action books    coderanch.com

Hi, I haven't looked through The Definitive Guide to SWT and JFace but I've seen its table of contents. We cover a lot of the same material - widgets, events, graphics - but there are three important differences: 1. We chose to present SWT and JFace side-by-side instead of as two separate parts. For example, our chapter on Events covers SWT ...

7. Does the SWT in Action book come with a CD?    coderanch.com

It looks like it's time to clarify Manning's ebook-pbook deal. Sorry to do this in a technical forum, but you asked. If you are not interested, please skip this! Note, this explanation below is for domestic sales. It's slightly different for foreign sales. Two months ago Manning installed a new shopping cart. Since then, if you buy a print edition, you ...

8. SWT ALT+F4 key combinations listeners    coderanch.com

Hi all I'm currently developing a custom dialog by extending JFace's Dialog. I need to implement a ALT+F4 listener (to close the dialog), but unfortunately, the Dialog uses a Shell internally and that Shell grabs and consumes the ALT+ F4 key events. For purpose of my dialog, I don't use the title bar provided by SWT's shell, and so I can't ...

9. Listeners in SWT    coderanch.com

Hi, i was wondering if someone can help me. i'm new to swt, and i am trying to work with two listeners. I have a login screen that a user enters their username and password and then clicks login button. when they click login their is a SelectionListener that will envoke a login method. i also have a listener on the ...





10. SWT: missing a MouseListener method    coderanch.com

hi, my aim is to get execute a listener method ONLY when following is happening: 1)a mouse button is pressed on a Button 2)this mouse button is released when it is still over the Button unfortunately there are only three events for mouses like mouseUp mouseDown. if i use mouseUp() the event is fired too when i am pressing the button, ...

11. SWT Table Listener    coderanch.com

Hi, I have a SWT table that i add a list of files to. when i click on one of the files listed in the table it opens all files (there are 3 files) in separate Swing windows. However, i just want it to open the file that i double click on in the SWT table. Can anyone please help me, ...

12. How to draw with mouse in SWT    coderanch.com

Hi, I would appreciate if anybody could point me to some examples or tutorials on how to draw on a SWT surface (say a graphics context),just by moving the mouse on it(free drawing). I found examples on draw line , draw rectangle but i need to draw any free shape on the surface. any help is appreciated. Thanks

13. SWT - key and paint issue    coderanch.com

This one is weird. I have an SWT app that works fine except for a couple oddities. When I type an unusual key (e.g. tab, arrow), it will redraw all of my custom-painted components, but just the base components (e.g. I have colored buttons and it will draw just the base grey button - though if I repaint it's fine again.) ...

14. SWT event handling    coderanch.com

Hi all, I have a question about good design in SWT. Given an ApplicationWindow that has two Components, X and Y: class ApplicationWindow { protected Control createContents(Composite parent) { X x = new X(this); Y y = new Y(this); } } class X extends Composite { public X(Composite parent) { super(parent, SWT.NONE); final Button button_X = new Button(this, SWT.NONE); } } ...

16. SWT Editable table with Listener    coderanch.com

Hello, I have created an editable table in SWT using 'TableEditor' . Each row in the table represents an Object, say Address object. I now want to add a propertyChangeListener to this table so that whenever I update any cell of a row, the corresponding object is automatically updated. Is this possible ? Kindly help. Note that each row is a ...