Triad sou.

2011-11-07から1日間の記事一覧

色の反転

public Color invertColor(Color color) { return new Color( 255 - color.getRed(), 255 - color.getGreen(), 255 - color.getBlue() ); } サンプル

ちらつかない JEditorPane クラス の setText メソッド

JEditorPane クラス の setText メソッドは public void setText(String t) { try { Document doc = getDocument(); doc.remove(0, doc.getLength()); if (t == null || t.equals("")) { return; } Reader r = new StringReader(t); EditorKit kit = getEdit…