Page 1 of 4 1234 LastLast
Results 1 to 10 of 32

Thread: Java Gui Code Really Annoys Me

  1. #1
    Poster
    Join Date
    Jan 2004
    Posts
    3,073
    [RANT]



    Stupid bloody java GUI code

    [/RANT]
    On a given day or given circumstance, you think you have a limit.
    And you then go for this limit and you touch this limit and you think "Ok, this is the limit".
    As soon as you touch this limit, something happens and you suddenly can go a little bit further.
    With your mind power, your determination, your instinct and the experience as well, you can fly very high.

    - Ayrton Senna, R.I.P.

  2. Lounge   -   #2
    bigboab's Avatar Poster BT Rep: +1
    Join Date
    Jul 2003
    Posts
    29,621
    Originally posted by 4th gen@22 March 2004 - 23:14
    [RANT]



    Stupid bloody java GUI code

    [/RANT]
    Is that GUI or GVI?
    The best way to keep a secret:- Tell everyone not to tell anyone.

  3. Lounge   -   #3
    Poster
    Join Date
    Jan 2004
    Posts
    3,073
    Originally posted by bigboab@22 March 2004 - 22:15
    Is that GUI or GVI?
    GUI (Graphical User Interface)...

    What is GVI?
    On a given day or given circumstance, you think you have a limit.
    And you then go for this limit and you touch this limit and you think "Ok, this is the limit".
    As soon as you touch this limit, something happens and you suddenly can go a little bit further.
    With your mind power, your determination, your instinct and the experience as well, you can fly very high.

    - Ayrton Senna, R.I.P.

  4. Lounge   -   #4
    why does it annoy you,
    Don't visit http://curlsonfilm.co.uk ever!

  5. Lounge   -   #5
    bigboab's Avatar Poster BT Rep: +1
    Join Date
    Jul 2003
    Posts
    29,621
    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?
    GUI (Graphical User Interface)...

    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.
    The best way to keep a secret:- Tell everyone not to tell anyone.

  6. Lounge   -   #6
    Poster
    Join Date
    Jan 2004
    Posts
    3,073
    Originally posted by benxuk@22 March 2004 - 22:21
    why does it annoy you,
    It&#39;s over-complicated. Have you ever used it?
    On a given day or given circumstance, you think you have a limit.
    And you then go for this limit and you touch this limit and you think &quot;Ok, this is the limit&quot;.
    As soon as you touch this limit, something happens and you suddenly can go a little bit further.
    With your mind power, your determination, your instinct and the experience as well, you can fly very high.

    - Ayrton Senna, R.I.P.

  7. Lounge   -   #7
    bigboab's Avatar Poster BT Rep: +1
    Join Date
    Jul 2003
    Posts
    29,621
    GVI is just my bad eyesight.
    The best way to keep a secret:- Tell everyone not to tell anyone.

  8. Lounge   -   #8
    thats kinda open questioned really? am i right in thinkin your using java and the project has a gui?

    what you using?
    Don't visit http://curlsonfilm.co.uk ever!

  9. Lounge   -   #9
    Poster
    Join Date
    Jan 2004
    Posts
    3,073
    This is the code you need to make a row of a few buttons. The buttons don&#39;t do anything (the only thing is that when you click on "quit", the title changes to "you clicked quit"). You can&#39;t even close the window with this code:

    Code:
    import java.awt.*;
    import java.awt.event.*;
    
    public class BankGUI extends Frame implements ActionListener{
     &nbsp;protected Button quitButton, openAccountButton, depositButton;
     &nbsp;protected Button getTotalAssetsButton, withdrawButton, getBalanceButton;
     &nbsp;protected TextField OAAccNo, DAccNo, DAmount, &nbsp;WAccNo, WAmount;
     &nbsp;protected TextField WSuccess, ABAccNo, ABAB, TBATA; 
     &nbsp;protected Panel bankPanel;
    
     &nbsp;public BankGUI&#40;&#41;{
    
     &nbsp; &nbsp;setSize&#40;800,600&#41;;
     &nbsp; &nbsp;setResizable&#40;true&#41;;
     &nbsp; &nbsp;setTitle&#40;&#34;My Bank&#34;&#41;;
     &nbsp; &nbsp;setLocation&#40;150,250&#41;;
    
     &nbsp; &nbsp;quitButton = new Button&#40;&#34;Quit&#34;&#41;;
     &nbsp; &nbsp;quitButton.addActionListener&#40;this&#41;;
     &nbsp; &nbsp;openAccountButton = new Button&#40;&#34;Open a new account&#34;&#41;;
     &nbsp; &nbsp;openAccountButton.addActionListener&#40;this&#41;;
     &nbsp; &nbsp;depositButton = new Button&#40;&#34;Deposit an amount&#34;&#41;;
     &nbsp; &nbsp;depositButton.addActionListener&#40;this&#41;;
     &nbsp; &nbsp;withdrawButton = new Button&#40;&#34;Withdraw an amount&#34;&#41;;
     &nbsp; &nbsp;withdrawButton.addActionListener&#40;this&#41;;
     &nbsp; &nbsp;getBalanceButton = new Button&#40;&#34;Check account balance&#34;&#41;;
     &nbsp; &nbsp;getBalanceButton.addActionListener&#40;this&#41;;
     &nbsp; &nbsp;getTotalAssetsButton = new Button&#40;&#34;Total balance in bank&#34;&#41;;
     &nbsp; &nbsp;getTotalAssetsButton.addActionListener&#40;this&#41;;
    
     &nbsp; &nbsp;bankPanel = new Panel&#40;&#41;;
     &nbsp; &nbsp;bankPanel.add&#40;quitButton&#41;;
     &nbsp; &nbsp;bankPanel.add&#40;openAccountButton&#41;;
     &nbsp; &nbsp;bankPanel.add&#40;depositButton&#41;;
     &nbsp; &nbsp;bankPanel.add&#40;withdrawButton&#41;;
     &nbsp; &nbsp;bankPanel.add&#40;getBalanceButton&#41;;
     &nbsp; &nbsp;bankPanel.add&#40;getTotalAssetsButton&#41;;
    
    
     &nbsp; &nbsp;this.add&#40;&#34;South&#34;,bankPanel&#41;;
    
     &nbsp; &nbsp;this.pack&#40;&#41;;
     &nbsp;}
    
     &nbsp;public void actionPerformed&#40;ActionEvent event&#41;{
     &nbsp; &nbsp;if &#40;event.getSource&#40;&#41; == quitButton&#41;{
     &nbsp; &nbsp; &nbsp; setTitle&#40;&#34;You clicked quit&#34;&#41;;
     &nbsp; &nbsp; &nbsp;}
     &nbsp; &nbsp;}
     &nbsp;
     &nbsp;public static void main&#40;String args&#91;&#93;&#41;{
     &nbsp; &nbsp;
     &nbsp;BankGUI bank = new BankGUI&#40;&#41;;
     &nbsp; &nbsp;bank.show&#40;&#41;;
     &nbsp;}
    }
    On a given day or given circumstance, you think you have a limit.
    And you then go for this limit and you touch this limit and you think &quot;Ok, this is the limit&quot;.
    As soon as you touch this limit, something happens and you suddenly can go a little bit further.
    With your mind power, your determination, your instinct and the experience as well, you can fly very high.

    - Ayrton Senna, R.I.P.

  10. Lounge   -   #10
    bigboab's Avatar Poster BT Rep: +1
    Join Date
    Jul 2003
    Posts
    29,621
    It is not unlike &#39;C&#39;.
    The best way to keep a secret:- Tell everyone not to tell anyone.

Page 1 of 4 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •