Java Frames (ugh!!!)


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Java Frames (ugh!!!)

  1. #1
    Eric Guest

    Java Frames (ugh!!!)


    I am writing an appliation where one frame opens another frame. I want to
    place a button on the opener frame that closes the frame it originally opened.
    I can't figure it out. Can somebody PLEASE help me.

    Thanks in advance,

    Eric

  2. #2
    Ruchi Dhar Guest

    Re: Java Frames (ugh!!!)


    You might of hava created one Frame object to open the new frame keep the
    reference of that object in the main frame. When you catch the event of
    a button on the opener call dispose() method on the stored frame reference.



    "Eric" <moonovermn@hotmail.com> wrote:
    >
    >I am writing an appliation where one frame opens another frame. I want

    to
    >place a button on the opener frame that closes the frame it originally opened.
    > I can't figure it out. Can somebody PLEASE help me.
    >
    >Thanks in advance,
    >
    >Eric



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center