The Philippine Electronics and Technology Forum
February 10, 2012, 04:50:17 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  

Pages: [1]   Go Down
  Print  
Author Topic: Java Netbeans  (Read 490 times)
sakura
CR2032 Battery
**

Pogi/Ganda Points: 0
Offline Offline

Posts: 19


« 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..Smiley
Logged
The Philippine Electronics and Technology Forum
« on: November 10, 2009, 11:33:49 PM »

 Logged
zeitcheist
Size AA Battery
****

Pogi/Ganda Points: 2
Offline Offline

Gender: Male
Posts: 114



« 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,
Logged

There are only 10 types of people in the world;
those who understand binary, and those who don't.
The Philippine Electronics and Technology Forum
   

 Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
netbeans
Java Programming
ineedhelp 1 762 Last post February 15, 2009, 04:45:03 AM
by 7_SeVeN_7
netbeans mysql code
Database Management
ineedhelp 0 892 Last post February 22, 2009, 11:38:02 AM
by ineedhelp
java game
Java Programming
ineedhelp 1 775 Last post March 22, 2009, 11:39:25 AM
by d3capitated
Netbeans help...
Computer Software
nomad 3 388 Last post March 03, 2010, 01:55:25 AM
by zeitcheist
PC games using java
Java Programming
mayo 19 839 Last post June 19, 2010, 07:13:40 PM
by mayo
Palindrome java.. need help..
COE Students
transistorized 3 131 Last post September 28, 2010, 08:13:40 AM
by bootfetch
JAVA Software Engineers
Job Vacancies
Pro-Engineer 0 56 Last post October 21, 2010, 10:15:53 AM
by Pro-Engineer
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!