I am trying to the text of my output jlabel to an array list in Netbeans 8.0.2. I am able to set the arraylist to the jlabel, but i need breaks in it so the whole thing isnt in one line. Anyone know how i can do this effectively?
import java.util.*;
public class CollectionAp extends javax.swing.JFrame {
ArrayList <String> CD = new ArrayList();
/**
* Creates new form CollectionAp
*/
public CollectionAp() {
initComponents();
}
private void InitializeClicked(){
DisplayButton.setEnabled(true);
AddButton.setEnabled(true);
RemoveButton.setEnabled(true);
InitializeButton.setEnabled(false);
Collections.addAll(CD,"Three Days Grace - Human Race","Steven Wilson - Hand Cannot Erase","Beatcore - Far From Home", "Paris Blohm - Left Behinds","DEAF KEV - Invincible");
}
private void DisplayClicked(){
String DisplayString = (CD.toString());
OriginalOutput.setText("Original Order\n**********\n" + DisplayString);