I got this program due for school where I will be doing a GUI to implement the coding I've done previously. I made some pimp graphics in 'shop since I wanted things more interesting than a fillRect() or fillOval() etc! And I realize you need to add them to a JLabel as an ImageIcon. But I want to be able to draw these graphics at specified, and CHANGING x,y coordinates. They are located in a class which is a JPanel and thus I figured if only I could add the JLabels to the JPanel at specified spots just as you specify x,y coordinates when drawing a oval or whatever. Is this possible at all?! HOPEFULLY :disgust:
edit: Also, is there anyway I could get a JPanel to only have to hold one large JLabel that would wrap the text to a certain size?? Cause I'm running into the same problem with another part of the program. I need to output multiple lines and it'd be nice just to be able to concat a big string and display with a single JLabel in a JPanel.
edit: Also, is there anyway I could get a JPanel to only have to hold one large JLabel that would wrap the text to a certain size?? Cause I'm running into the same problem with another part of the program. I need to output multiple lines and it'd be nice just to be able to concat a big string and display with a single JLabel in a JPanel.