Processingでボタンの作成をしており、ラベルの文字が英語での作成はできたのですが、日本語で表示する様にすると、「関数 "captionLabel()" は存在しません」と表示されます。
captionLabel()→getCaptionLabel()にすると今度はsetControlFont()の部分が存在しない関数だと表示されます。
エラーが出ているメソッド↓
Button createButton(String theName, int theValue, int theX, int theY, ControlFont theFont) { Button b = cp5.addButton(theName,theValue,theX,theY,60,30); b.captionLabel().setControlFont(theFont); return b; }
theFontの部分です。
ControlFont fo = new ControlFont(createFont("MS Gothic", 48)); createButton("fileA",50,50,60,fo);
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/01/19 03:32