忍者ブログ
[8]  [7]  [6]  [5]  [4]  [3]  [2]  [1
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

workbench.xmlがうまく表示できなかった(俺は何を間違えているやら・・・)ので新しくXMLを作成します。

src/main/resourseにgui.test.Menu.xml

src/main/javaにgui.test.MainAction

を作成

gui.test.Menu.xml

<?xml version="1.0" encoding="UTF-8"?>
<template xmlns="http://uruma.sandbox.seasar.org">
 <window title="メインメニュー" background="white" width="800" height="600" x="20" y="20">
  <gridLayout numColumns="1" >
   <gridData horizontalAlignment="FILL"/>
  </gridLayout>

  <composite>
   <fillLayout type="HORIZONTAL" spacing="5" />
   <button id="addButton" text="追加" />
  </composite>
 </window>
</template>

gui.test.MainAction

package gui.test;

import org.seasar.uruma.core.StandAloneUrumaStarter;

public class MainAction {
 public static void main(String[] args) {
  StandAloneUrumaStarter uruma = StandAloneUrumaStarter.getInstance();
  uruma.openWindow("gui/test/Menu.xml");
 }
}


でapp.diconというファイルをresourse直下に配置

app.dicon

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.3//EN"
 "http://www.seasar.org/dtd/components23.dtd">

<components>
</components>


これで Alt+Shift+X,J または実行 → Javaアプリケーションをすると追加っていうボタンが表示されるはず!

PR
この記事にコメントする
お名前
タイトル
文字色
メールアドレス
URL
コメント
パスワード   Vodafone絵文字 i-mode絵文字 Ezweb絵文字
カレンダー
04 2024/05 06
S M T W T F S
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
ブログ内検索
忍者ブログ [PR]

Graphics by Lame Tea / designed by 26℃