All About INTERFACE FileDialogPeer in AWT in Java

November 02, 2018
The FileDialogPeer Interface specifies the methods that all implementations of Abstract Window Toolkit must define while working with Dialog window.
The structure of interface DialogPeer is given as:

public interface java.awt.peer.FileDialogPeer extends java.awt.peer.DialogPeer{
//Methods
public abstract void setDirectory(String dir);
//sets the directory of the file dialog window to be the specified directory.
public abstract void setFileNameFilter(FileNameFilter filter);
//sets the filename filter for this file dialog windows to the specified filter.
}
 
All About INTERFACE FileDialogPeer in AWT in Java All About INTERFACE FileDialogPeer in AWT in Java Reviewed by Animesh Chatterjee on November 02, 2018 Rating: 5

All About INTERFACE DialogPeer in AWT in Java

November 02, 2018

The DialogPeer Interface specifies the methods that all implementations of Abstract Window Toolkit must define while working with Dialog window.
The structure of interface DialogPeer is given as:

public interface java.awt.peer.DialogPeer extends java.awt.peer.WindowPeer{
//Methods
public abstract void setResizeable(boolean resizeable);
//sets the resizeable flag
public abstract void setTitle(String title);
//sets the title of the dialog window
}
 
All About INTERFACE DialogPeer in AWT in Java All About INTERFACE DialogPeer in AWT in Java Reviewed by Animesh Chatterjee on November 02, 2018 Rating: 5

All About INTERFACE ContainerPeer in AWT in Java

November 01, 2018
The ContainerPeer Interface specifies the methods that all implementations of Abstract Window Toolkit must define while working with Container.
The structure of interface ContainerPeer is given as:

public interface java.awt.peer.ContainerPeer extends java.awt.peer.ComponentPeer{
//Methods
public abstract Insets insets();
//determines insets of the container,which indicates the size of the border of the container.
//A frame, for example has a top inset that corresponds to the height of the frame's title bar.
}
 
All About INTERFACE ContainerPeer in AWT in Java All About INTERFACE ContainerPeer in AWT in Java Reviewed by Animesh Chatterjee on November 01, 2018 Rating: 5

All About INTERFACE ComponentPeer in AWT in Java

November 01, 2018
The ComponentPeer Interface specifies the methods that all implementations of Abstract Window Toolkit must define while working with Component.
The structure of interface ComponentPeer is given as:

public interface java.awt.peer.ComponentPeer{
//Methods
public abstract void disable();
public abstract void dispose();
public abstract void enable();
public abstract void hide();
public abstract void nextFocus();
public abstract void requestFocus();
public abstract void show();
public abstract void setForeground(Color c);
public abstract void setBackground(Color c);
public abstract void setFont(Font f);
public abstract void reshape(int x,int y,int width,int height);
public abstract void paint(Graphics g);
public abstract void repaint(long tm,int x,int y,int width,int height);
public abstract ColorModel getColorModel();
public abstract FontMetrics getFontMetrics(Font f);
public abstract Graphics getGraphics();
public abstract Toolkit getToolkit();
public abstract Dimension minimumSize();
public abstract Dimension preferredSize();
public abstract boolean handleEvent(Event e);
public abstract boolean prepareImage(Image img,int w,int h,ImageObserver o);
public abstract int checkImage(Image img,int w,int h,ImageObserver o);
public abstract Image createImage(ImageProducer p);
public abstract Image createImage(int w,int h);
}
 
All About INTERFACE ComponentPeer in AWT in Java All About INTERFACE ComponentPeer in AWT in Java Reviewed by Animesh Chatterjee on November 01, 2018 Rating: 5

All About INTERFACE ChoicePeer in AWT in Java

November 01, 2018
The ChoicePeer Interface specifies the methods that all implementations of Abstract Window Toolkit must define while working with Choice.
The structure of interface ChoicePeer is given as:

public interface java.awt.peer.ChoicePeer extends java.awt.peer.ComponentPeer{
//Methods
public abstract void addItem(String item,int index);
//adds an item to the choice menu at the specified index position.
public abstract void select(int index);
//sets the selected position item to be the item at the specified position.
}
 
All About INTERFACE ChoicePeer in AWT in Java All About INTERFACE ChoicePeer in AWT in Java Reviewed by Animesh Chatterjee on November 01, 2018 Rating: 5
Powered by Blogger.