[Zerofile-svn] SF.net SVN: zerofile: [24] trunk/src
Status: Pre-Alpha
Brought to you by:
karl-bengtsson
|
From: <kar...@us...> - 2007-11-06 12:01:57
|
Revision: 24
http://zerofile.svn.sourceforge.net/zerofile/?rev=24&view=rev
Author: karl-bengtsson
Date: 2007-11-06 04:02:00 -0800 (Tue, 06 Nov 2007)
Log Message:
-----------
Implemented basic GUI components on the chat window.
Modified Paths:
--------------
trunk/src/ZeroFile.java
trunk/src/ZeroFileChatWindow.java
Modified: trunk/src/ZeroFile.java
===================================================================
--- trunk/src/ZeroFile.java 2007-11-06 11:32:18 UTC (rev 23)
+++ trunk/src/ZeroFile.java 2007-11-06 12:02:00 UTC (rev 24)
@@ -9,6 +9,7 @@
*/
public static void main(String[] args) {
ZeroFileMainWindow.startMainWindow();
+ ZeroFileChatWindow.startChatWindow();
if (args.length > 1)
{
System.out.println("Usage: java TestRegister name");
Modified: trunk/src/ZeroFileChatWindow.java
===================================================================
--- trunk/src/ZeroFileChatWindow.java 2007-11-06 11:32:18 UTC (rev 23)
+++ trunk/src/ZeroFileChatWindow.java 2007-11-06 12:02:00 UTC (rev 24)
@@ -1,15 +1,23 @@
-import java.io.Serializable;
+import java.awt.*;
+import javax.swing.*;
-import javax.swing.JFrame;
-
/**
- *
+ * @author Karl Bengtsson
*/
-
-/**
- * @author karl
- *
- */
-public class ZeroFileChatWindow extends JFrame implements Serializable {
- static final long serialVersionUID = -5208364155946320552L;
+public class ZeroFileChatWindow {
+ static void startChatWindow()
+ {
+ JFrame chatWindowFrame = new JFrame();
+ chatWindowFrame.setLayout(new GridLayout(0,1,1,1));
+ JTextArea chatTextArea = new JTextArea();
+ chatWindowFrame.add(chatTextArea);
+ JPanel bottomPanel = new JPanel();
+ chatWindowFrame.add(bottomPanel);
+ bottomPanel.setLayout(new GridLayout(1,0,1,1));
+ JTextField entryTextField = new JTextField();
+ JButton sendButton = new JButton("Send");
+ bottomPanel.add(entryTextField);
+ bottomPanel.add(sendButton);
+ chatWindowFrame.setVisible(true);
+ }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|