在我的程序中,我有一个添加按钮并添加按钮以将整个引文添加到数组中。
String citeString;
citeString = "";
citeString = lastNameInput.getText()+", "+firstNameInput.getText()+",``"+titleInput.getText()+", "+EditionInput.getText()+", "+PublisherInput.getText()+", "+placePublicationInput.getText()+", "+yearPublicationInput.getText()+".";
Collections.addAll(Citation,citeString);
Collections.sort(Citation, String.CASE_INSENSITIVE_ORDER);
我还有一个显示按钮来显示引文到文本字段
String outString = "";
Collections.sort(Citation, String.CASE_INSENSITIVE_ORDER);
for(int e=0;e<Citation.size();e++){
outString = outString+Citation.get(e)+"\n";
}
citeOutput.setText(outString);
我需要将titleInput斜体化。我怎么做?