Hi,
I am trying to add a browser with its UI component to a panel, that when loaded it has a textfield, a button, and the bowserUI which has a predefined prefferedSize. Here is the actionPerformed associated to the button:
goButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
browser_.loadURL(getAddress());
}
});
the statement: browser_.loadURL(getAddress()); is also called in the constructor of the panel in order to load a default URL which is already initialized as a value for the textfield.
The problem is that the URL is not loaded by default, however, it is loaded when I click the button. Any ideas for a solution or a source of this problem?
Best