My Program overrides public void paint(Graphics g, int x, int y); in order to draw some stings using g.drawString(someString, x+10, y+30);
public void paint(Graphics g, int x, int y);
g.drawString(someString, x+10, y+30);
You can use a JLabel and embed the text with html.
JLabel.setText(""+line1+""+line2);