I have the following method declared..
I am having trouble with the line that readsCode:public void display() { Set finalStringSet = mapFinal.keySet(); JTextPane textPane = new JTextPane(); // creates an empty text pane textPane.setContentType("text/html"); // lets Java know it will be HTML textPane.setText(<span style="font-size: 20pt">Big</span>); // sets its text JFrame frame = new JFrame(); // makes a window to put it in frame.getContentPane().add(textPane); // adds the text pane to the window frame.pack(); // adjusts the window to the right size frame.setVisible(true); // makes it show up }I just want to print out the string "big" with that increased font size, yet everytime i try to compile i get the error "> expected".. Can someone PLEASE help me?Code:textPane.setText(<span style="font-size: 20pt">Big</span>);
Bookmarks