- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
4 Posted Topics
I assume you want to serialize your objects. [CODE] FileOutputStream fos = new FileOutputStream("objects.ext"); ObjectOutputStream oos = new ObjectOutputSream(fos); oos.writeObject(myObject); oos.close(); [/CODE] You may have to implement Serializable if you want to write your own classes. If the classes of the java library doesnt implement Serializable just make a new …
You need more then a simple TextArea. Take a look at javax.swing.JEditorPane.
Im quite sure there is no difference between an applet and an aplication. [CODE] import java.awt.event.*; import javax.swing.*; import java.awt.*; public class MyFrame extends JFrame implements ActionListener { Button button = new Button("Push me!"); public MyFrame() { super("MyFrame"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(200, 100); button.addActionListener(this); getContentPane().setLayout(new BorderLayout()); getContentPane().add("Center", button); setVisible(true); } public final …
When I tried to set fullscreen in my applet I got trouble with the sandbox. But it only said [B]exclusive[/B] fullscreen mode is not allowed. So if I dont want to sign my applet, is there any way to get another fullscreen mode? I dont know what the other modes …
The End.
Pogo