I am localizing a Java application for Japanese NT, and I have some
problems. The font is not mapped to any existing Japanese fonts. So I see
garbage (boxes) instead of Japanese characterswhere I am setting the
labe font as
LabelObject.setFont(new Font("MS Sans Serif", Font.BOLD, 19));
I
I ran into that problem, and the following seems to work:
Point viewPos = scrollPane.getViewport().getViewPosition();
scrollPane.remove(myBox);
// update myBox
scrollPane.getViewport().setView(myBox);
scrollPane.getViewport().setViewPosition(viewPos);
myBox.revalidate();
Evan
James Brundege