Hi,
   which is the best component for graphics drawing, i
was searching through the archives i come to know that
better not to mix lightweight component with the
heavyweight component. That means better not to use
canvas with JFrame or swing components ?

   my popup menu is not displayed on the JPanel . i
have
JPanel inside  the JApplet and JApplet is inside the
JFrame (for making applet standalone).

JFrame
   - JApplet
       -JPanel


//This code is written in Class which extends the
JPanel
this.addMouseListener(new
java.awt.event.MouseAdapter()
{
      public void mouseClicked(MouseEvent e) {
      if(e.isMetaDown())
      {

this.MyPopupMenu.show(this,e.getX(),e.getY());
         this.ENPopupMenu.setVisible(true);
System.out.println("status :
"+this.ENPopupMenu.isVisible());
      }
});



Here is the output
status : true


isVisible() method also returns true but i could not
see the popup menu.


Abhishek



__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to