ellandrd
asked on
null pointer
int cols = d.listOfImages.size() ;
System.out.println("cols "+cols); <<<<<<<<< prints out 2
imagePanel.setLayout( new GridLayout( 1, cols ) ) ;
whats wrong?
System.out.println("cols "+cols); <<<<<<<<< prints out 2
imagePanel.setLayout( new GridLayout( 1, cols ) ) ;
whats wrong?
Maybe the imagePanel is null. Please post full stack trace
ASKER
ive declared it like this:
private JPanel imagePanel, infoPanel = new JPanel();
is this legal?
private JPanel imagePanel, infoPanel = new JPanel();
is this legal?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
OK
(but it's legal)
:-)