Ubuntu 上の NetBeans で日本語が四角に文字化けするのを直すには - How to Correct Square-Garbled Characters of NetBeans on Ubuntu
直すには以下を参照します。 - To correct it, refer the following
ツール→オプション→フォントと色
Monospaced 13
プレビューで日本語らしきものが四角になっていたら、- If preview shows Japanese as square,
VL Pゴシック 13
等に変更することで、日本語を表示できます(他のフォントだと、日本語一文字の幅がズレてしまいます)。 - by changing to above font, you can display Japanese. (Using other font, width of Japanese characters will be broken)