hi,
I would like to save a .bmp image using showSaveDialog and i cannot figure out what to use.. Below i have the code of open.
Code
protected void Open(JFileChooser chooser, JLabel lblPicture) {
// TODO Auto-generated method stub
if (chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION)
{
File fileChoosed = chooser.getSelectedFile();
try
{
imageChoosed = ImageIO.read(fileChoosed);
lblPicture.setIcon(new ImageIcon(imageChoosed));
IconEnableing(true);
}
catch (IOException e)
{
e.printStackTrace();
}