Sbucareer's Posts
Nairaland Forum › Sbucareer's Profile › Sbucareer's Posts
1 2 3 4 5 6 7 8 9 10 (of 38 pages)
All the beautiful girls in sun news online since they started showing those mouth wetting and finger leaking gorgeous girls |
x |
Nothing |
But I have given you a head start here |
What are you on about? CYGWIN, is a Window Unix base command Line emulator. These people are talking about virtual box and devices that allows you to run two operating system in real-time. You can download virtual box from here |
Nobody has come up with solutions for the delete button and clear button. What a programmers indeed? |
yemivictor: E be like say na d two of them dey follow do boju boju for house when them suppose dey school! ROTFLMFAO!!! |
doyen: non-programmers.I want compare and contract.And i will be very happy if i can be help out from this.Please One Mr Seun,actually i don't know you but i quite believe that you are the brain behind nairaland,please i need solution this topic sir. It took you nearly two years to understand it. |
bidemi007: i mean computer science syllabuss If I may ask what does the syllabus covers? |
x |
Afam how are you? Long time no huu? Hope you are aight? |
x |
[size=30pt] @nazzyon What da f**k? [/size] |
phemiejay: am looking for a certified hacker i have got deals ROTFLMFAO!!! |
candylips, we are coming to it, I was trying to demonstrate desktop application development by request. Later we can see how we could use XML with JSF on desktop application development to modify MobilePhoneApplication software above. Do you stay @ Eltham? |
javaprince: sbu Have done has u sent. I seriously do not understand that statement |
You do not extend attributes of any class in Java instead you inherit the public attributes and methods of a super class or protected methods and attributes of the same class package. private attributes makes your variable immutable by any inquiring accessor, you only expose them by using callbacks.Java calls them setter and getter, i.e let take a variable int qty //callbacks int getQty(){return qty;} void setQty (int qty) {this.qty = qty;} their first name must start with set for mutable and get immutable |
sayhi2ay You can always use a callback methods. That is the whole point of it, to stop your code looking like spaghetti. Remember software cohession. Sorry, I am used to software developing to programming. |
The post mentioned in the body of the message ARE YOU AN ENGINEERING, COMPUTER SCIENCE OR PHYSICS STUDENT? I thought this was for student. You should have clarify your intentions and purpose of your communiqué. Accept my sincere apologies, although the communication was ambiguous. If you are looking for such level of help, try freelance and getacoder I am registered in both portals, and then I will be very happy to help you. |
For our interest, what are you studying? Also, in what areas is your research based? |
Listen, I am not arguing with you or trying to put you down in anyway. The premise here is to convince you that you do not need that guy's help or any other person. |
That is how some people that their project was written for will write a grammatical and spelling error for their boss request on appraisal documentation for the company. Maybe you should post here, your company's name and the type of appraisal you want documentation for? |
Kobojunkie: The service is for help in putting together Project documentation, not necessarily your actual project, by my understanding of it. That is why a project supervisor is assigned to each student to help with issues like this. You are assigned first supervisor and second supervisor. The reason is to monitor harasstment and prejudice on marking and scores and to help you with project structure and research and provide you with academic journals as it may cost you money. |
This is the MobilePhoneApplicationGUI package Phone; import javax.swing.UIManager; import java.awt.event.*; import javax.swing.JApplet; import javax.swing.JFrame; import javax.swing.event.*; public class MobilePhoneApplicationGUI extends JApplet implements ActionListener, DocumentListener{ private MobilePhoneApplication mobile; public MobilePhoneApplicationGUI(){ mobile = new MobilePhoneApplication(this, this); mobile.defaultMenu(MobilePhoneApplication.FALSE); this.init(); }//End MobilePhoneApplicationGUI public void init(){ this.getContentPane().add(mobile); }//End init public void actionPerformed (ActionEvent event ){ String source = event.getActionCommand(); if( source.equals ( "Call" )){ mobile.clear(); mobile.show("connecting, " ; mobile.enableCall(MobilePhoneApplication.FALSE); mobile.setButtons(MobilePhoneApplication.FALSE); mobile.enableEnd(MobilePhoneApplication.TRUE); }else if (source.equals ( "End" )){ mobile.clear(); mobile.defaultMenu(MobilePhoneApplication.FALSE); mobile.setButtons(MobilePhoneApplication.TRUE); }else if ( source.equals ( "1" )){ mobile.show("1" ; }else if ( source.equals ( "ABC2" )){ mobile.show("2" ; }else if ( source.equals ( "DEF3" )){ mobile.show("3" ;}else if ( source.equals ( "GHI4" ) ){ mobile.show("4" ; }else if ( source.equals ( "JKL5" ) ){ mobile.show("5" ; }else if ( source.equals ( "MNO6" )){ mobile.show("6" ; }else if ( source.equals ( "PQRS7" ){mobile.show("7" ; }else if (source.equals ("TUV8" ){mobile.show("8" ; }else if ( source.equals ( "WXYZ9" ){mobile.show("9" ; }else if (source.equals ("*" )){ mobile.show("*" ; }else if ( source.equals ("0+" )){ mobile.show("0" ; }else if (source.equals ( "#" ){mobile.show("#" ; }else{ mobile.show("You stole this phone!" ; }//End if }//End actionPerformed public void changedUpdate (DocumentEvent e ){ }//End changedUpdate public void insertUpdate (DocumentEvent e){ if ( mobile.hasChar() ) mobile.defaultMenu(MobilePhoneApplication.TRUE); mobile.enableEnd(MobilePhoneApplication.FALSE); }//End insertUpdate public void removeUpdate (DocumentEvent e ){ }//End removeUpdate public static void main (String args[]){ JFrame frame = new JFrame("Mobile Phone" ;MobilePhoneApplicationGUI demo = new MobilePhoneApplicationGUI(); frame.getContentPane().add (demo); frame.setSize(230, 600); frame.setLocation(550, 100); frame.setResizable(MobilePhoneApplication.FALSE); frame.setVisible(MobilePhoneApplication.TRUE); frame.pack(); frame.show(); /*frame.addActionListener(new ActionListener (){ public void actionPerformed (ActionEvent e ){ System.exit(0); }}); */ frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); }//End main }//End MobilePhoneApplicationGUI |
I have explained it above. How to create a pacakge. |
Here is the bytecode and a HTML file to run with AppletViwer |
malone5923, Asfar as I know all the current codes above are fully debugged and fully functional. Copy and paste it in a text editor like Notepad or WordPad and save them as .java respectively and run. |
sayhi2ay Ok, you have learned that yeah, and certain that a variable declared without an identifier is automatically declared private by the JVM. Thank you sayhi2ay for that info. But remember, it is recommended to physical write and identifier to a variable to guarantee that its behaviour will remain consistant to the written program. |
In the MobilePhoneApplicationGUI class we have a method called actionPerformed(ActionEvent event) This is because any class that implements an interface promises to implement it supplied method. In our case, we implemented ActionListener class. Its supplied a method called actionPerformed (ActionEvent e), so we must implement it ourselfs. for help consult Java API This message is for our method in the MobilePhoneApplicationGUI. So you can copy the method and paste it over the one above. public void actionPerformed (ActionEvent e){ }//End actionPerformed |
Yes. TestCase in a different package. |
sayhi2ay They are by default public identifier, try it yourself. Write a class in a pacakge and another class in a different package and create a TestCase class and try to access the attributes of each identifier without private clause. Another reason is to make sure that JVM during the runtime encapsulation associate an attribute with its appropriate identifier. Tell us your answer. |
[size=1pt] With a bit of luck, we are trying to model something like this. I hope people contribute their own ideas. I am not going to comment the above code too heavily so you can figure out what is happening. Warning The code might be full of Bugs, debug as you can to get it working. Don't post comments back here that you cannot debug [/size] |
;