Results 1 to 4 of 4

Thread: Help: Components!!!

  1. #1

    Thread Starter
    Addicted Member Virtual24's Avatar
    Join Date
    May 2001
    Posts
    228

    Exclamation Help: Components!!!

    I want to make an app in which the user clicks and drags the cursor across an empty frame. While the cursors is being dragged a rectangle is drawn on the frame ( a bounding box. ) When the user releases the mouse button, a JButton is added to the frame, using the parameters from the drag. I have gotten this to work, however, in the process of dragging, if there are already buttons on the frame, the drawing is choppy because the buttons are being drawn, and then the rect over it, covering up the previously drawn buttons with a background. How can i get an effect similar to dragging and dropping a button in VB but on a java frame?
    To protect time is to protect everything...

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    How does it look in VB?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Addicted Member Virtual24's Avatar
    Join Date
    May 2001
    Posts
    228
    hmmm... maybe i did not explain this right. I want to be able to place components onto forms ( as in design them ) in java, just like you would design a form in vb, by placing a command on one... make more sense now?
    To protect time is to protect everything...

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    No, I understood perfectly well what you want.

    I just wanted to know how exactly it looks when you drag and drop in VB.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width