File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes How to do this - DataInputStream/DataOutputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to do this - DataInputStream/DataOutputStream" Watch "How to do this - DataInputStream/DataOutputStream" New topic

How to do this - DataInputStream/DataOutputStream

Sofia Stevens

Joined: Jul 27, 2009
Posts: 1
Got it working thanks!
Rob Spoor

Joined: Oct 27, 2005
Posts: 19651

Please Use Code Tags. I've added them just to be able to read it.

Also, please compress your code into a SSCCE - this code is much too long to filter out anything useful.

As for the window closing event, use a WindowListener.

How To Ask Questions How To Answer Questions
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 37936
If you are beginning Java, please write your own Layout code, and don't rely on the tools with NetBeans.
If you want a list of teams, set up those teams names as an array (or List) and iterate through the array and set up radio buttons as anonymous objects. That way you can have sensible results if you change the number of teams suggested.

And welcome to JavaRanch
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: How to do this - DataInputStream/DataOutputStream