I'm writing a program for a "Ski Area" (I hope that's the English term).
If you know a little bit about skiing, you know there are tracks with different difficulties. Now I want to show all the tracks on my window with a little picture (blue, red, black).
I have an ArrayList
where all the information resides. I get the information from a database.
ArrayList<piste> pisteArrayList = dbz.holePistenAusSkigebietNr(skigebietNr);
with a "foreach" I can get the information and make a String:
for (piste p : pisteArrayList) {
String bezeichnung = p.getBezeichnung();
int laengeInM = p.getLaengeInM();
String schwierigkeit = dbz.holeSchwierigkeitAusSchwierigkeitNr(p.getSchwierigkeitNr());
String text = " " + schwierigkeit + ": " + bezeichnung + " (" + laengeInM + " )" + "\n";
But now here comes the problem: If I use JTextArea
I can show the text, but can't show images.
And because I'm a starter I don't know anything else.
Can somebody help?