caramoan tour package

caramoan tour package

Author Topic: Java Netbeans  (Read 671 times)

Offline sakura

  • CR2032 Battery
  • **
  • Posts: 19
  • Pogi/Ganda Points: 0
Java Netbeans
« on: November 10, 2009, 11:33:49 PM »
Hello po.. I'm a newbie in java programming.

I am making an application using Java Netbeans. The main feature of this application is to allow users to drag and drop icons in the workspace. What I would like to do is when a button is pressed, say a button with a rectangle icon, a rectangle image will be displayed--above the button and below the mouse cursor--which then can be drag. I've searched the internet and what i found is the used of glasspane, however, when i released the mouse, the image is not displayed in the workspace.

Do you have any idea how to implement it? Thank you very much..:)

Philippine Electronics Forum

Java Netbeans
« on: November 10, 2009, 11:33:49 PM »

Offline zeitcheist

  • Size AA Battery
  • ****
  • Posts: 114
  • Pogi/Ganda Points: 2
  • Gender: Male
Re: Java Netbeans
« Reply #1 on: December 02, 2009, 03:22:42 PM »
Hmm.. you are talking about high level interface using netbeans.. Actually, java api positions elements in some way or another, depending on the setting of the frame or whatever container the elements reside. If you want a draggable rectangle, you can use a pane with absolute positioning.. But i have not tried it yet.. you may listen for the movement of the mouse then move the pane accordingly..

Best regards,
There are only 10 types of people in the world;
those who understand binary, and those who don't.

Philippine Electronics Forum

Re: Java Netbeans
« Reply #1 on: December 02, 2009, 03:22:42 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com