Forums Register Login

Frame doesn't display

+Pie Number of slices to send: Send
Hi

I have a problem when I am using a class to create a new frame. It works great under XP, but when I run this on win98 it doesn't do anything.
My code is :
if (orderAddWindow != null)
{
orderAddWindow.closeWindow();
orderAddWindow.setVisible(false);
}
orderAddWindow = new OrderAddWindow(this);

public class OrderAddWindow extends JFrame implements ActionListener
{
public OrderAddWindow(OrderDisplayWindow parent)
{// never gets here}

}

Please help if you can - this is all a bit new to me, and very frustrating !

Thanks
Jill
+Pie Number of slices to send: Send
 

Originally posted by J Heaney:

public class OrderAddWindow extends JFrame implements ActionListener
{
public OrderAddWindow(OrderDisplayWindow parent)
{// never gets here}

}



Where *does* it get to?
+Pie Number of slices to send: Send
I don't know. The program carries on running and everything else works, but it just never seems to get into this constructor.
It's a tiny ad. At least, that's what she said.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 633 times.
Similar Threads
Display a Frame in a frame
fix for non-static variable
java web service stub error
paint()
adding JPanel to a JScrollPane
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:04:51.