PicFilter picFilter = new PicFilter();
JFileChooser fileChoose = new JFileChooser();
fileChoose.setFileFilter(picFilter);
fileChoose.showOpenDialog(jContentPane);
String path = fileChoose.getSelectedFile().getAbsolutePath();
Icon icon = new ImageIcon(path);
textPane.insertIcon(icon);這樣我就可以插入圖片了,但是插入後不能選中或是改大小之類...
請問一下有方法可以完成改大小,像word一樣的或是選中?
JFileChooser fileChoose = new JFileChooser();
fileChoose.setFileFilter(picFilter);
fileChoose.showOpenDialog(jContentPane);
String path = fileChoose.getSelectedFile().getAbsolutePath();
Icon icon = new ImageIcon(path);
textPane.insertIcon(icon);這樣我就可以插入圖片了,但是插入後不能選中或是改大小之類...
請問一下有方法可以完成改大小,像word一樣的或是選中?
现在的想法是每个图片单独画在一个jpanel容器中,然后再通过捕获jpanel的各种鼠标事件来实现控制,
具体的代码写法还在研究中