Been trying to add my array, year and size of a house into a GUI, more precisely JTextarea. What\'s the simplest way of doing so? Not quite grasped data input yet.
JTextArea has a simple append method that should make it easy to append the results
For example...
for(int i=0; i< myHouse.length; i++){
if(myHouse[i]!=null){
textArea.append("Year: ");
textArea.append(Integer.toString(myHouse[i].getYear()));
textArea.append(". Size: ");
textArea.append(Integer.toString(myHouse[i].getSize()));
textArea.append("\n");
}
}
Take a look at How to use text areas for more deatils