Problem with popup

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Anonymous

Problem with popup

Post by Anonymous » Tue Apr 09, 2002 11:29 am

I have a program make using 0.8.0. It have a popupmenu with 'save as..' but with 0.8.1 the menu doesn't show.

David Gilbert

Re: Problem with popup

Post by David Gilbert » Tue Apr 09, 2002 12:29 pm

Does it work in the demo application? I've moved the check for the popup trigger to the mousePressed(...) method in JFreeChartPanel...perhaps that doesn't work on some JVMs? What versions (JDK and operating system) are you using?

Regards,

Dave Gilbert

Anonymous

Re: Problem with popup

Post by Anonymous » Tue Apr 09, 2002 1:31 pm

I'm using windows XP and JDK 1.3.1.

It doesn't work in the demo.

David Gilbert

Re: Problem with popup

Post by David Gilbert » Tue Apr 09, 2002 5:17 pm

It's working fine for me on Linux (SuSE 7.3) with two different JDK1.3 versions. Anyone else having problems?

Regards,

DG.

Dennis

Re: Problem with popup

Post by Dennis » Wed Apr 10, 2002 6:18 pm

I have the same problem, in 0.8.0 a popupmenu appears, but in 0.8.1 doesn't.

I am using Windows NT and JDK1.3.

Keith Davey

Re: Problem with popup

Post by Keith Davey » Wed Apr 10, 2002 10:06 pm

I am the same problem. I am running W2K, 0.8.1 and java 1.3.1. When I ran the debugger and stopped it in the MousePressed method of the JFreeCharPanel, the isPopupTrigger is reporting false.

Not sure why

kmd

David Gilbert

Re: Problem with popup

Post by David Gilbert » Wed Apr 10, 2002 10:19 pm

Hi All,

I've now found out that on Windows, the popup trigger occurs on a mouse release, whereas on Linux it occurs on a mouse press. I'll revert to the old code for 0.8.2. In the meantime, please migrate to Linux...

Here's one source of info on Sun's Java site:

http://developer.java.sun.com/developer ... 75576.html

Regards,

DG.

kar yeow

Re: Problem with popup

Post by kar yeow » Fri May 24, 2002 12:53 pm

I hacked it by called mousePressed inside mouseReleased. Like so

public void mouseReleased(MouseEvent e) {
// do nothing
mousePressed(e);
}

Locked