Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

popup menu?

Posted on 1998-08-28
1
Medium Priority
?
202 Views
Last Modified: 2010-03-30
Hi, in my code, I tried to popup a menu after button is
clicked. I just cannot get it work. In the mouse listen
I have code popup.show(this, e.getX(), e.getY());
the runtime error is "parent is null". What should I do?
Can sb. give me working sample code?
Thanks.
Shane
0
Comment
Question by:xiaoxiangz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
milen_n earned 100 total points
ID: 1222894
Did you add the popup menu to your Component (or to one of its parents) before trying to show it?
add(popup);
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn different types of Android Layout and some basics of an Android App.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

647 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question