// the newly opened file should nicely fit the screen
theJcpp.getRenderPanel().setFitToScreen(true);
theJcpp.getRenderPanel().update(theJcpp.getRenderPanel().getGraphics());
// ..enable zooming by removing constraint again
theJcpp.getRenderPanel().setFitToScreen(false);
however see this code in JCPAApplet.java