[RANT]
:angry: :angry: :angry: :angry: :angry:
Stupid bloody java GUI code :angry:
[/RANT]
Printable View
[RANT]
:angry: :angry: :angry: :angry: :angry:
Stupid bloody java GUI code :angry:
[/RANT]
Is that GUI or GVI?Quote:
Originally posted by 4th gen@22 March 2004 - 23:14
[RANT]
:angry: :angry: :angry: :angry: :angry:
Stupid bloody java GUI code :angry:
[/RANT]
GUI (Graphical User Interface)...Quote:
Originally posted by bigboab@22 March 2004 - 22:15
Is that GUI or GVI?
What is GVI?
why does it annoy you,
GUI (Graphical User Interface)...Quote:
Originally posted by 4th gen+22 March 2004 - 23:19--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (4th gen @ 22 March 2004 - 23:19)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-bigboab@22 March 2004 - 22:15
Is that GUI or GVI?
What is GVI? [/b][/quote]
I would have thought in this day and age it would be all drag and drop. No need for code.
It's over-complicated. Have you ever used it?Quote:
Originally posted by benxuk@22 March 2004 - 22:21
why does it annoy you,
GVI is just my bad eyesight. :lol:
thats kinda open questioned really? am i right in thinkin your using java and the project has a gui?
what you using?
This is the code you need to make a row of a few buttons. The buttons don't do anything (the only thing is that when you click on "quit", the title changes to "you clicked quit"). You can't even close the window with this code:
Code:import java.awt.*;
import java.awt.event.*;
public class BankGUI extends Frame implements ActionListener{
protected Button quitButton, openAccountButton, depositButton;
protected Button getTotalAssetsButton, withdrawButton, getBalanceButton;
protected TextField OAAccNo, DAccNo, DAmount, WAccNo, WAmount;
protected TextField WSuccess, ABAccNo, ABAB, TBATA;
protected Panel bankPanel;
public BankGUI(){
setSize(800,600);
setResizable(true);
setTitle("My Bank");
setLocation(150,250);
quitButton = new Button("Quit");
quitButton.addActionListener(this);
openAccountButton = new Button("Open a new account");
openAccountButton.addActionListener(this);
depositButton = new Button("Deposit an amount");
depositButton.addActionListener(this);
withdrawButton = new Button("Withdraw an amount");
withdrawButton.addActionListener(this);
getBalanceButton = new Button("Check account balance");
getBalanceButton.addActionListener(this);
getTotalAssetsButton = new Button("Total balance in bank");
getTotalAssetsButton.addActionListener(this);
bankPanel = new Panel();
bankPanel.add(quitButton);
bankPanel.add(openAccountButton);
bankPanel.add(depositButton);
bankPanel.add(withdrawButton);
bankPanel.add(getBalanceButton);
bankPanel.add(getTotalAssetsButton);
this.add("South",bankPanel);
this.pack();
}
public void actionPerformed(ActionEvent event){
if (event.getSource() == quitButton){
setTitle("You clicked quit");
}
}
public static void main(String args[]){
BankGUI bank = new BankGUI();
bank.show();
}
}
It is not unlike 'C'.