Java Help.

Posts 12 of 2 · Page 1 of 1
Java Help.
Hey guys, Im new to java. I've searched google 100 thousand times to a soulution for this..

How do i open a javascript window via a button & have the window show PHP code?

i want the width=672,height=550

any answer's are fine

thanks.
JFrame for the window, it's in the uh...javax.swing namespace

I wrote an overloaded function for you:
[highlight=java]
import javax.swing.*;

public static JFrame createWindow(int width, int height, String title, int x, int y)
{
JFrame mainFrame = new JFrame();
mainFrame.setTitle(title);
mainFrame.setSize(width, height);
mainFrame.setVisible(true);
mainFrame.setLocation(x,y);

return mainFrame;
}

public static JFrame createWindow(int width, int height, String title)
{
JFrame mainFrame = new JFrame();
mainFrame.setTitle(title);
mainFrame.setSize(width, height);
mainFrame.setVisible(true);

return mainFrame;
}
[/highlight]
Posts 12 of 2 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?