Java Reference
In-Depth Information
{{
add(lblScale); add(txtScale);
setLayout(new
FlowLay-
out(FlowLayout.CENTER, 0, 5));
}});
final JLabel lblDO = new JLabel("Drawing options:");
lblDO.setPreferredSize(new
Dimension(width,
height));
lblDO.setDisplayedMnemonic('o');
final JTextField txtDO = new JTextField(15);
lblDO.setLabelFor(txtDO);
form.add(new JPanel()
{{
add(lblDO); add(txtDO);
setLayout(new
FlowLay-
out(FlowLayout.CENTER, 0, 5));
}});
pane.add(form, BorderLayout.CENTER);
final JButton btnGP = new JButton("Get Picture");
ActionListener al;
al = new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
try
{
double
ra
=
Double.parseDouble(txtRA.getText());
double
dec
=
Double.parseDouble(txtDec.getText());
double
scale
=
Double.parseDouble(txtScale.getText());
String dopt = txtDO.getText().trim();
byte[]
image
=
imgcutout-
Search WWH ::




Custom Search