Character « Menu « Java Swing Q&A





1. Tab character in Java    stackoverflow.com

Trying to get a tab character into a JMenuItem using \t but it's not printing. I bet it's something really basic I'm missing. Here's the code

menuItem = new JMenuItem("New\tCtrl + N");
Thanks