Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  *  Copyright (c) 2011 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany.
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the GNU Lesser Public License v2.1
  *  which accompanies this distribution, and is available at
  *  http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  *
  *  Contributors:
  *      Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany - RMI Client, FileChooser and WebDAV
 */
package de.ipk_gatersleben.bit.bi.edal.rmi.client.gui;
This is a abstract class. To create a concrete MetadataDialog as a subclass,you need only provide implementations for the following two methods: *
  public JPanel createbuttonpanel();
  public void initdata();
  

Author(s):
Jinbo Chen
Version:
1.0
public abstract class MetadataDialog extends JDialog{
	private static final long serialVersionUID = 1L;
Return value if cancel is chosen.
	public static final int CANCEL_OPTION = 1;
Return value if approve (yes, ok) is chosen.
	public static final int APPROVE_OPTION = 0;
	public int returnvalue;
	public MetadataDialog()
	{
	}
	public abstract JPanel createbuttonpanel();
	public abstract void initdata();
	public int showOpenDialog() {
		setModal(true);
		setVisible(true);
		return ;
	}
		return new WindowAdapter() {
			public void windowClosing(final WindowEvent we) {
			}
		};
	}
New to GrepCode? Check out our FAQ X