public void mousePressed(MouseEvent me) {
            //((ChartEntry)chart.entryList.get(idx)).setShowFlag(true);	
            if (idx != -1) {
//                chart.showDomainVals(idx);
            }
            //System.out.println("IDX___________ " + idx);
            chart.updateAll();
            if (SwingUtilities.isRightMouseButton(me)) {
                if (chart.chartData.getEntryList().get(idx).getIsMarked()) {
                    ((JMenuItem) popEntry.getComponent(0)).setText("Unmark");
                } else {
                    ((JMenuItem) popEntry.getComponent(0)).setText("Mark");
                }
                if (idx != -1) {
                    if (chart.chartData.getEntryList().get(idx).getShowFlag()) {
                        ((JMenuItem) popEntry.getComponent(3)).setText("Hide Details");
                    } else {
                        ((JMenuItem) popEntry.getComponent(3)).setText("Show Details");
                    }
                }
                rightClicked = idx;
                popEntry.show(me.getComponent(), me.getX() - 1, me.getY() - 1);

            }
        }