ito ung code na naeh search ko ayaw go mana .. pa.tulong naman mga bossing ..
BufferedImage image2 = new BufferedImage(panel.WIDTH, panel.HEIGHT, BufferedImage.TYPE_INT_RGB); JFileChooser jFile = new JFileChooser(); jFile.showSaveDialog(null); Path pth = jFile.getSelectedFile().toPath(); JOptionPane.showMessageDialog(null, pth.toString()); Graphics2D graphics2D = image2.createGraphics(); try { ImageIO.write(image2, "", new File(pth.toString())); } catch (IOException ox) { // TODO: handle exception ox.printStackTrace(); }
[mod]Dont's #6 PD rules Paki basa.
[
You are not allowed to view links.
Register or Login][/mod]