public class Component extends Object
This class provides a minimal stub implementation of Swing components to allow the NDT tool to run in headless environments without requiring actual GUI components. All methods are no-ops that do nothing, providing compatibility without functionality.
This emulation layer enables the NDT network testing functionality to be integrated into I2P applications that don't have graphical user interfaces.
| Constructor and Description |
|---|
Component() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Component c) |
void |
add(int i,
Component c) |
void |
add(String str,
Component c) |
void |
addMouseListener(MouseAdapter l) |
void |
addWindowListener(WindowAdapter l) |
Toolkit |
getToolkit() |
void |
pack() |
void |
repaint() |
void |
setBorder(Component c) |
void |
setCursor(Cursor c) |
void |
setEditable(boolean b) |
void |
setEnabled(boolean b) |
void |
setForeground(Color c) |
void |
setLayout(BorderLayout l) |
void |
setLayout(BoxLayout l) |
void |
setPreferredSize(Dimension d) |
void |
setResizable(boolean b) |
void |
setSize(int i,
int j) |
void |
setTitle(String s) |
void |
setVisible(boolean b) |
public void add(Component c)
public void add(int i,
Component c)
public void addMouseListener(MouseAdapter l)
public void addWindowListener(WindowAdapter l)
public Toolkit getToolkit()
public void pack()
public void repaint()
public void setBorder(Component c)
public void setCursor(Cursor c)
public void setEditable(boolean b)
public void setEnabled(boolean b)
public void setForeground(Color c)
public void setLayout(BorderLayout l)
public void setLayout(BoxLayout l)
public void setPreferredSize(Dimension d)
public void setResizable(boolean b)
public void setSize(int i,
int j)
public void setTitle(String s)
public void setVisible(boolean b)