1. can i show ImageIcon within JTextArea ? coderanch.comI don't think you can display an image inside a text area. either you use jtextpane, or jeditorpane, or you do as you suggested: get rid of the text area and use - not a jpanel, but a jlabel (and set the image as its (Image)Icon). if the jpgs are of limited number you could use a card layout. it is ... |
2. JFrame+JPanel+JButton+JtextArea+ImageIcon java-forums.orgHello there, I was trying to create a window, with a picture (preferred .jpg) on left top corner, 3 buttons on center (I was trying to resize as you can see the buttons and full them with color but i take them out for the moment) and one text to the bottom of the window. I think I have done everything ... |