GUI graphical user interface GUI friendly InputOutput dialogs
- Slides: 22
GUI • graphical user interface (GUI) ����������� (friendly)
Input/Output dialogs • Dialog ���������� method ���� show. Input. Dialog ���� • JOption. Pane. show. Input. Dialog( "Enter first integer" ) • ������� expression ����� type ��� String – Ok ��������
Input/Output dialogs • Dialog ���������� method ���� show. Message. Dialog • show. Message. Dialog( null, "The sum is " + sum, "Sum of Two Integers", JOption. Pane. PLAIN_MESSAGE )
Example
swing-JPanel • ����������� – ������� JPanel jp = new JPanel(); – �������� JFrame • JFrame. set. Content. Pane(JPanel);
swing-JLabel • JLabel ���������� – ������� JLabel label 1 = new JLabel(“My text”); – ������� tooltip ��� label 1. set. Tool. Tip. Text( "This is label 1" ); • �������� JPanel. add(JLabel);
swing-JTextfield • ����������� 1 ����������� • ��������� object private JText. Field text. Field; text. Field = new JText. Field( "Enter text here" ); • ������ JPanel add( text. Field 2 );
Action. Listener
JText. Field & Action. Listener • ����� Action. Listener ������ JText. Field. Handler handler = new Text. Field. Handler(); text. Field. add. Action. Listener( handler );
JButton • ��������������������� • ��������� object private JButton plain. JButton; plain. JButton = new JButton( "Plain Button" ); • ������ JPanel add( plain. JButton );
Action. Listener
JButton & Action. Listener • ����� Action. Listener ������ JButton. Handler handler = new Button. Handler(); plain. JButton. add. Action. Listener( handler );
����� • Java How to program : H. M. Deitel
- Inputoutput devices
- Basic principles of input design
- User interface history
- History of the gui
- Graphical user interface in data structures
- Principles of user interface design
- Advantages and disadvantages of graphical user interface
- Components of graphical user interface
- Function of graphical user interface
- Graphical user interface testing
- Graphical user interface testing
- [web user interface]
- Java graphical user interface
- Characteristics of graphical user interface
- Arnis puksts
- Dialogs ir
- Logogrāfi
- Ruby graphical interface
- Graphical device interface with c
- Idscenter
- Graphical device interface with c
- Armitage metasploit
- Gui for r