私は J2ME で開発しています。テキストを表示してから、人々が押すことができる下線付きのリンク/ボタンを表示する必要があります。
キャンバスが使えません。
一時的な解決策として、一般的なコマンド ボタンを使用していますが、このオプションを画面に表示したいと考えています。
(特定の外観になるようにすべてを変更することを意味するフレームワークは使用したくありません。下線付きのリンクのみです)
見つけた、うっ!!!
Command prospectoCommand = new Command("Prospecto", Command.EXIT, 1);
StringItem messageItem2 = new StringItem("", "", Item.HYPERLINK);
messageItem2.setText("push to go to the URL");
ItemCommandListener listener = new ItemCommandListener() {
public void commandAction(Command cmnd, Item item) {
if(cmnd==prospectoCommand)
{
try {
midlet.platformRequest(URL);
} catch (ConnectionNotFoundException ex) {
ex.printStackTrace();
}
}
}
};
messageItem2.setDefaultCommand(prospectoCommand);