Created
September 2, 2013 17:37
Java display map using ireport
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void showButtonActionPerformed(java.awt.event.ActionEvent evt) { | |
int zoom; | |
if(cbzoom.getSelectedIndex()==0){ | |
zoom = 15; | |
}else{ | |
zoom = Integer.parseInt(cbzoom.getSelectedItem().toString().trim()); | |
} | |
int id; | |
if(cbid.getSelectedIndex()==0){ | |
id = 1; | |
}else{ | |
id = Integer.parseInt(cbid.getSelectedItem().toString().trim()); | |
} | |
dpane.removeAll(); | |
IFrame iframe = new IFrame(zoom,id); | |
iframe.setSize(dpane.getWidth(), dpane.getHeight()); | |
dpane.add(iframe); | |
iframe.setVisible(true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment