Drop « Drag Drop « Java Swing Q&A





1. (Java) How can I create a Drop Shadow/Inner Glow/Outer Glow similar to Photoshop    stackoverflow.com

I am generating some images using the Graphics2D interface, and occasionally I'd like to be able to draw some text on the image and apply to it effects like the ones ...

2. add listener to combo drop down list    coderanch.com

hi akira, I hope you get a reply, since I think that I have the same problem. My problem is when I call method: myCombo.setSelectedIndex( int index ) it calls the action listener but I just want the action listener to be called when the user clicks on it. I was thinking maybe to solve the problem by removing the actionListener ...

3. MS type Drop Down Date Chooser    coderanch.com

4. drop down multiple selection    coderanch.com

5. Drop Down Box???    coderanch.com

6. Drop Down Tool Bar in a View    coderanch.com

Hi all, I want to create a toolBar that has a group of actions and looks like an icon that when we press on it, a drop down list of action will be seen and we will be able to select one of the actions. It is like the menuBar but I need it in the toolBar. Please let me know ...

7. How to populate drop down box    coderanch.com

Hi, It worked for me thanks a lot. And i too have some doubt regarding the frame created with out the maximise minimise and the close buttons. I have searched maximum posts for this question. But in most of them i found usage of the method SetDefaultLookAndFeelDecorated and iterating the method, this method is used for JFrames and my screens are ...

8. Transfer drop to sub-component (need help with)    coderanch.com

First of all, hello My problem is this: I've been messing with Swing and Drag and Drop functionalities for an application and learned a lot in a few weeks. I've managed to create color tiles that work with drag and drop; dragging the color from the color tile and dropping in another component that get's drawn with the chosen color. I ...

9. Printing with Left Margin changed drops print characters    coderanch.com

I have an application which is to print on a special form. The form has top and bottom margins of 1 inch (which is standard). However the left and right margins are 1/2 inch. So in my printer coding, I tried to set the paper imageable area to allow for the new size: (passed PaperFormat is "pf".) Paper pprPap = pf.getPaper(); ...





10. Transfer drop to sub-component (need help with)    java-forums.org

First of all, hello My problem is this: I've been messing with Swing and Drag and Drop functionalities for an application and learned a lot in a few weeks. I've managed to create color tiles that work with drag and drop; dragging the color from the color tile and dropping in another component that get's drawn with the chosen color. I ...

11. dropping a URL: how to get page title?    java-forums.org

Hello, I'm dropping the URL from the address field of the browser into a Java application. Using drag and drop I can have the URL, but I would also like to have the title of the page. How can I do it? For example, when you drop the address on a desktop, you get a shortcut to the webpage and the ...

12. Is it possible to disable drop in a component?    java-forums.org

Yes, I know it. I replaced the default transferhandler with my own. I have two JLists, I need to disable the drop component in the first JList and the the drag component in the second one, so I can only drag items from the first list to the second one, and not the other way around. Is it possible?