T
tiewknvc9
Hi thanks for reading.
I have a component that I would like to draw to, the only thing is that
I would like to draw a graphics2d object onto the component. The
object has already been created in a previous function, and when I set
the paintComponent's graphics to it, it does nothing...
it just looks blank.
the component contains this code in its paintComponent function...
public void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D x = (Graphics2D)g;
x = m_g2dPreviouslyMadeGraphic;
}
}
let me know if you have any ideas... Thanks
I have a component that I would like to draw to, the only thing is that
I would like to draw a graphics2d object onto the component. The
object has already been created in a previous function, and when I set
the paintComponent's graphics to it, it does nothing...
it just looks blank.
the component contains this code in its paintComponent function...
public void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D x = (Graphics2D)g;
x = m_g2dPreviouslyMadeGraphic;
}
}
let me know if you have any ideas... Thanks