NeQrhk
NeQrhk
2016-03-25 13:10

java swing组建代码是什么意思?

  • swing
  • java

jMenuItem[i][j] = new JMenuItem(menuItem[i][j].split("\|")[0]);

jMenuItem[i][j].setAccelerator(KeyStroke.getKeyStroke(Integer.parseInt(menuItem[i][j].split("\|")[1]),

ActionEvent.CTRL_MASK) );

jMenu[i].addSeparator();

drawPanel.filename = fileDialog.getDirectory()+fileDialog.getFile();

public void paint(Graphics g) {
Graphics2D g2d = (Graphics2D) g;
g2d.setPaint( new GradientPaint( 0, 0, G_color_left, 100, 0, G_color_right, true ) );
g2d.fill( new Rectangle2D.Double( 0, 0, 100, 25 ) );
}

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

3条回答

为你推荐