It's worth noting that NetBeans is going to react differently then your console. Try exporting it to a runnable jar and test it, that should give you an idea of what it actually looks like.