[Kune-commits] r764 - sandbox4/src/main/java/org/op/client

vjrj vjrj at ourproject.org
Tue May 13 23:11:56 CEST 2008


Author: vjrj
Date: 2008-05-13 23:11:55 +0200 (Tue, 13 May 2008)
New Revision: 764

Modified:
   sandbox4/src/main/java/org/op/client/Sandbox.java
Log:
emite chat first aprox

Modified: sandbox4/src/main/java/org/op/client/Sandbox.java
===================================================================
--- sandbox4/src/main/java/org/op/client/Sandbox.java	2008-05-13 11:37:42 UTC (rev 763)
+++ sandbox4/src/main/java/org/op/client/Sandbox.java	2008-05-13 21:11:55 UTC (rev 764)
@@ -126,8 +126,8 @@
         dialog3.show();
 
         BasicDialog chatDialog = new BasicDialog("Emite chat", false, Scroll.NONE, 600, 415, 300, 300);
-        DefaultPanel fitPanel = new DefaultPanel();
-        fitPanel.setLayout(new FitLayout());
+        chatDialog.setMaximizable(true);
+        chatDialog.setLayout(new FitLayout());
         chatDialog.addButton(new Button("Send"));
         chatDialog.setButtonAlign(HorizontalAlignment.LEFT);
         DefaultBorderLayout chatPanel = new DefaultBorderLayout();
@@ -149,16 +149,23 @@
         chatPanel.add(centerPanel, Position.CENTER);
         chatPanel.add(east, Position.EAST, false, 150);
         chatPanel.add(south, Position.SOUTH, true, 75);
-        fitPanel.add(chatPanel.getPanel());
-        fitPanel.layout(true);
-        chatDialog.add(fitPanel);
+        chatDialog.add(chatPanel.getPanel());
         chatDialog.show();
-        chatDialog.renderIfNeeded();
+        chatDialog.layout();
+        // chatDialog.renderIfNeeded();
 
+        // BasicDialog chatDialog2 = new BasicDialog("Layout sample", false,
+        // Scroll.NONE, 600, 415, 300, 300);
+        // chatDialog2.setLayout(new FitLayout());
+        // TestBorderLayout testBL = new TestBorderLayout();
+        // chatDialog2.add(testBL);
+        // chatDialog2.show();
+        // chatDialog2.layout();
+        //
         // vp.add(chatPanel.getPanel());
         // vp.layout();
         // RootPanel.get().add(vp);
 
-        // wk.getEntityWorkspace().setContent(chatPanel.getPanel());
+        // wk.getEntityWorkspace().setContent(chatPanel.getPanel());//
     }
 }




More information about the kune-commits mailing list