Where should I put this call to frame pack? I've tried to put it like this:
import java.awt.*;
public class Log{
public static void main(
String[] args)
{Frame frame=new Frame();
frame.pack();
frame.setTitle("Password");
Jobs test=new Jobs();
frame.setSize(700,700);
frame.setBackground(Color.lightGray);
frame.add(
test);
frame.setVisible(true);
}
}
but I still have to maximise and minimise the window to have the new elements appearing!