highcharts 如何实现双击事件?

highcharts 如何实现双击事件?


梦里花落0921
浏览 630回答 2
2回答

慕村225694

import javax.swing.*;import java.awt.event.*;import java.awt.*;public class MouseDemo extends JFrame {private static final long serialVersionUID = 1L;boolean IS_MAXIMIZED = false;public MouseDemo() {super("DoubleClick Demo");this.addMouseListener(new MouseAdapter() {public void mouseClicked(MouseEvent e) {if (e.getClickCount() == 2) {if (IS_MAXIMIZED) {setExtendedState(JFrame.NORMAL);IS_MAXIMIZED = false;} else {setExtendedState(JFrame.MAXIMIZED_BOTH);IS_MAXIMIZED = true;}}}});this.setSize(new Dimension(200, 150));this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);}public static void main(String args[]) {new MouseDemo().setVisible(true);}} 
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Html5