Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,190,358 members, 7,940,394 topics. Date: Thursday, 05 September 2024 at 03:18 AM |
Nairaland Forum / Mimohmi's Profile / Mimohmi's Posts
(1) (2) (3) (4) (5) (6) (of 6 pages)
Career / Re: Salary In The Nigerian Army? by mimohmi(m): 2:57am On Oct 14, 2014 |
Ladies and Gentlemen including both the serving and Retired Officers of our great Armed Forces. I just bumped into this interesting thread and permit me to contribute. First, we all should understand that choosing a career in life could be quite challenging and it's nice we give our very honest view as not to mislead the younger generations. As an ex boy from NMS to NDA and finally the Navy, before retiring as Lt. Cdr iin 2005. The military like any other professor does have two sides of a coin. Depending on what you want to achieve personally in Life. The training and discipline is second to none. But the beauty is, there is always an exit at certain time, if you feel you are not or can't have or achieve your personal set goals or objects. I can bet with anybody that people that stayed in one profession throughout their working life are much more fewer than those that changed between several professions. As a person, I had to work as a software developer, system engineer, project manager and presently systems integration. All the basics was acquired while in the military. I have even tried doing freelance teaching on a couple sites online, including this site as far back as 2006. So, in conclusion, I will advice any young man or woman, planning to join the military to put the quest for money aside and look more at the professional benefits and opportunities within the system. As for the package, I believe, it's pretty Ok. Presently, I have a splendid job but still enjoys lots of benefits from the military. Professionalism and patience remains the greatest keys to an enduring success. Wishing everyone good luck. 1 Like |
Family / Re: Can You Suck Mucus Out your Childs Nose With Your Mouth? by mimohmi(m): 2:30pm On Mar 13, 2011 |
What of kiss of life ? You probably regret it later when you see the child gasping for breath. |
Family / Re: I Dont Want To Bring My Husband Abroad . by mimohmi(m): 11:43am On Feb 11, 2011 |
New to this forum. My opinion is that the woman is digging her grave using her God's given hands. What is it that she is so full of herself about. She is going to regret it in her old age. I have an aunt that did similar thing when she was younger, now she is old staying alone living with rats and cockroaches. Wish her all the best |
Family / Re: Deleted Post by mimohmi(m): 11:21am On Feb 11, 2011 |
This is quite unfortunate. Before, we all start our conclusions. What was the plans both had. What brought jand and why did or making effort to finance the trip. Who and what persuaded the jand moves. What role did she play in the whole scene. In as much as I can't side a guy like this, the woman should check or do a self re examination. 1 Like |
Family / Re: Im Unhappy In My Marriage by mimohmi(m): 1:12am On Feb 10, 2011 |
A woman writes to the IT Technical support Staff Dear Tech Support, Last year I upgraded from Boyfriend 5.0 to Husband 1.0 and I noticed a distinct slowdown in the overall system performance, particularly in the flower and jewellery applications, which operated flawlessly under Boyfriend 5.0. In addition, Husband 1.0 uninstalled many other valuable programs, such as Romance 9.5 and Personal Attention 6.5, and then installed undesirable programs such as NEWS 5.0, MONEY 3.0 and CRICKET 4.1. Conversation 8.0 no longer runs, and House cleaning 2.6 simply crashes the system. Please note that I have tried running Nagging 5.3.2 to fix these problems, but to no avail. What can I do? Si Mrs , Reply from the IT Technical Support Staff Dear Madam, First, keep in mind, Boyfriend 5.0 is an Entertainment Package, while Husband 1.0 is an operating system. Please enter command: ithoughtyoulovedme.html and try to download Tears 6.2 and do not forget to install the Guilt 3.0 update. If that application works as designed, Husband 1.0 should then automatically run the applications Jewellery 2.0 and Flowers 3.5. However, remember, overuse of the above application can cause Husband 1.0 to default to Silence 2.5 or Beer 6.1. Please note that Beer 6.1 is a very bad program that will download the Snoring Loudly (Beta). Whatever you do, DO NOT under any circumstances install Mother-In-Law 1.0 (it runs a virus in the background that will eventually seize control of all your system resources.) In addition, please do not attempt to reinstall the Boyfriend 5.0 program. These are unsupported applications and will crash Husband 1.0. In summary, Husband 1.0 is a great program, but it does have limited memory and cannot learn new applications quickly. You might consider buying additional software to improve memory and performance. We recommend: Cooking 3.0 and Hot Looks 7.7. Good Luck Madam! |
Politics / Re: IBB: The Real Reason I Annulled June 12 by mimohmi(m): 1:29pm On Feb 08, 2009 |
OK, guys here are more details on the guys and the June 12 saga. The plot. IBB was in charge until he annulled the election. on the day of announcement, Abacha was at the airport on his way to Lagos. He condemned the action openly and promised to stand on June 12. Nigerians protested and confusion within the military hierarchy, IBB not knowing who to trust again and with pressure, he had two options, handover to abacha or resign. AFRC came up with the option of interim national government. Next question was who was to head it ? Since Abiola was from the West, Shonekan was recommended and appointed to head it. His task was clear, organise another election with 6months or max one year. Abiola and all the aggrieved parties were ok with the arrangement. End of part 2. Shonekan, president and Abacha Chief Of Defence Staff(CDS). Abiola, at this time still believed that June was now a reality, since Abacha, his main man was the CDS. He then approach Abacha to pressure Shonikan to resign. Things soon became too uncomfortable for Shonekan to handle, his fellow people from the West did not help issue, as he was left alone. He got scared and resigned. You need to see him as the reviewing officer at the Nigeria Defence Academy Passing Out Parade, faded face with expression of FEAR End of part 3. Then came Abacha, Head of State. The script was for him to take over from Shonekan, and handover to Abiola (that was the only way without Election). REMEMBER "ABIOLA WAS THE FIRST PERSON TO CONGRATULATE ABACHA AND EVEN PAID HIM A VISIT IN ASO ROCK". Both men were filled with smile. End of part 4. The next phase of the Abiola/Abacha's project was the handing over. Abacha told Abiola to relax for a while to enable put some structure in place that will facilitate the handing over. But, after the guy testes that hot sit, it was to precious to give away. Time was ruining out, Abiola felt betrayed and started mobilising to pressure Abacha out of Office, the guy kept his fit down. Abiola had no choice that to go and declare himself as the Elected President Of Nigeria. The rest is history. Some of the so called pro June 12 started seeking asylum in Britain and America collecting funds for themselves in the name of June 12. I beg jare, all these guys come to public and think they are fooling Nigerians, at the back the sit together with their daughters age mate, dining and wining together. |
Politics / Re: IBB: The Real Reason I Annulled June 12 by mimohmi(m): 12:37pm On Feb 08, 2009 |
@Lucabrasi, Just to clear your point about Obansajo been unable to plan coup cos he no longer in the military. From my experience, planning a coup require lots of finances. All coups in Nigeria were never financed by military men, in fact they are just the executioners. To add, Abiola was one of the major coup financier in Nigeria. Have forgotten the Obansanjo,Adisa and co story against Abacha. Let us just thank God that those thing happened in our history. |
Politics / Re: IBB: The Real Reason I Annulled June 12 by mimohmi(m): 12:27pm On Feb 08, 2009 |
Hi All, to be candid IBB did made history with June 12, be good or bad. The whole affair then was like a movie, where power play was at its best and got too complex for the players to handle. Abiola (May His soul rest in peace) himself could not be exornorated from the play likewise Abacha (Soul Also rest in peace). It is a very long story that only prosperity can judge. IBB reasons are quit ok by me, if it is true that NATIONAL SECURITY was his reasons. |
Computers / Re: Guide For Virtual Box (vmware And Sun Xvm Virtualbox) On Ubuntu by mimohmi(m): 11:18pm On Jan 04, 2009 |
[size=14pt] My network is just very slow today. So just want to load all the shots before the installation and integration later. The first shot was that of Sun xVM virtualbox, while this is for vmware, all on ubuntu 8.04 hardy [/size]
|
Computers / Guide For Virtual Box (vmware And Sun Xvm Virtualbox) On Ubuntu by mimohmi(m): 10:04pm On Jan 04, 2009 |
hi
|
Computers / Re: Do You Know About Vmware? by mimohmi(m): 9:50pm On Jan 04, 2009 |
[size=14pt] I have the vmware software for debian linux. I am runing it on ubuntu 8. Wmware is only available as a trial version online. You will need a trial key to run it. Why not try Sun xVM virtualbox, it's cool and free from SUN Microsystem. Need help, post it. [/size] |
Programming / Re: Guys I Badly Need Sites To Download Free E-books Pleeeeeeeease! by mimohmi(m): 11:45pm On Jan 03, 2009 |
check this site http://www.4shared.com Hope it's helps. |
Computers / Re: Ubuntu Linux by mimohmi(m): 11:41pm On Jan 03, 2009 |
Hi All, Can you guys just calm down. We are suppose to learn or share our experiences here and not to insult each other. No man is an Island. Though thanks for the guys that have kept the thread running, wish your all the best you wish yourselves this new year. |
Programming / Re: Java Programming For Dummies by mimohmi(m): 11:51am On Dec 12, 2008 |
@Zeta Most people do often make common mistakes in differentiating between SCRIPTING LANGUAGE and PROGRAMMING LANGUAGE. While the first does not require an compilation the other does. As such Programming languages include Java, VB, C, C++, Fortran etc. While Javascript,php,html,ehtml are all scripting languages. To start, I advice you begin with Java and may generally add others later. Cheers |
Programming / Re: Java Programming For Dummies by mimohmi(m): 7:14pm On Dec 05, 2008 |
I do agree with your comment. Long time. For those that need free Java books click this link and type Java 5 on the search box. You will get lot of java 5 books including certification guide. http://www.4shared.com you do not need to register. Hope it helps. |
Programming / Re: My Fellow Java Programmers Might Like This,its Not A Main Class Though by mimohmi(m): 6:45pm On Dec 05, 2008 |
Hi you guys, should learn to be objective when you need to criticise someone. I believe the aim is to learn and not mess ourselves up. If I may add my comment. This code is a tutorial code, the type we wrote in those days of Basic and Wbasic. It is procedural of course to demonstrate the if else statement and probably introduction to the Scanner and printf classes (Java 5 new features.). Hope am right. If not, please donkoleone clarify. |
Programming / Re: Java Coming To End The Future Of Information Technology by mimohmi(m): 5:58pm On Dec 05, 2008 |
Hi Guys long time. If there is only one thing I used to like about this forum, it is about learning and willing to update people on what is right or wrong. I expect your comments to be more objective and not to insult or discourage people from expressing their view. Thanks for your understanding. Ok, talk2hb1, here is an Overview of Aspect Oriented Programming from Introduction to Aspect-Oriented Programming by Graham O'Regan 01/14/2004". " When Object-Oriented (OO) programming entered the mainstream of software development, it had a dramatic effect on how software was developed. Developers could visualize systems as groups of entities and the interaction between those entities, which allowed them to tackle larger, more complicated systems and develop them in less time than ever before. The only problem with OO programming is that it is essentially static, and a change in requirements can have a profound impact on development timelines. Aspect-Oriented Programming (AOP) complements OO programming by allowing the developer to dynamically modify the static OO model to create a system that can grow to meet new requirements. Just as objects in the real world can change their states during their lifecycles, an application can adopt new characteristics as it develops. Consider an example: many of you have developed simple web applications that use servlets as the entry point, where a servlet accepts the values of a HTML form, binds them to an object, passes them into the application to be processed, and then returns a response to the user. The first cut of the servlet may be very simple, with only the minimum amount of code required to fulfill the use case being modeled. The code, however, often inflates to three to four times its original size by the time secondary requirements such as exception handling, security, and logging have been implemented. I use the term "secondary requirements" because a servlet should not need to know about the logging or security mechanisms being used; its primary function is to accept input and process it. AOP allows us to dynamically modify our static model to include the code required to fulfill the secondary requirements without having to modify the original static model (in fact, we don't even need to have the original code). Better still, we can often keep this additional code in a single location rather than having to scatter it across the existing model, as we would have to if we were using OO on its own. In this article, we will look at a simple application that will hopefully allow you to see the benefits of AOP firsthand, and then we will briefly discuss how AOP could be used in your existing projects. Terminology Before we delve too deeply into AOP, let's introduce some standard terminology to help us understand the concepts. Cross-cutting concerns: Even though most classes in an OO model will perform a single, specific function, they often share common, secondary requirements with other classes. For example, we may want to add logging to classes within the data-access layer and also to classes in the UI layer whenever a thread enters or exits a method. Even though the primary functionality of each class is very different, the code needed to perform the secondary functionality is often identical. Advice: This is the additional code that you want to apply to your existing model. In our example, this is the logging code that we want to apply whenever the thread enters or exits a method. Point-cut: This is the term given to the point of execution in the application at which cross-cutting concern needs to be applied. In our example, a point-cut is reached when the thread enters a method, and another point-cut is reached when the thread exits the method. Aspect: The combination of the point-cut and the advice is termed an aspect. In the example below, we add a logging aspect to our application by defining a point-cut and giving the correct advice. There are many other facets of AOP, such as introductions (where interfaces/methods/fields can be added to existing classes), that hold tremendous potential for developers, but I'll stick with some of simpler facets in this article. When you are familiar with the concepts presented here, I would recommend that you continue to investigate AOP and see how the other facets may be of use to you in your development environment. Existing Frameworks Probably the most mature and fully featured framework available today is AspectJ. While AspectJ sets the standard that most frameworks follow, the architects took the unusual step of adding new keywords to the Java language in their implementation. Though the new syntax isn't too difficult to learn, it does mean that you will have to change your compiler, and potentially reconfigure your editor, in order to use the new syntax. In a large team this may not be feasible, as the whole team could be affected. The modification to the language also increases the learning curve for teams looking to introduce AOP into existing projects. What we need is a framework that can be easily introduced without severely impacting the existing development and build process. There are several frameworks that fit the bill, such as JBoss AOP, Nanning, and Aspectwerkz (AW). For this article, I've chosen Aspectwerkz because it is probably the easiest framework to learn and integrate into your existing projects. Aspectwerkz, created by Jonas Boner and Alexandre Vasseur, remains one of the quickest and most fully featured AOP frameworks available. While it may not boast all of the features of AspectJ, it is sufficiently complete to be of great use to most developers in many situations. One of the most interesting features of Aspectwerkz is its ability to run in two different modes: online and offline. In online mode, AW is hooked into the low-level classloading mechanism part of the JVM, allowing it to intercept all classloading calls and transform the bytecode on the fly. AW provides many options to hook in, and a wrapper script can be used as a replacement for the bin/java command to automatically detect and set a working configuration depending on the Java version and JVM capabilities. This mode holds many benefits to developers, as it can be hooked into any classloader and weave classes at classload time, which means that your class files are not modified manually, but deployed as usual. However, it does require additional configuration of your application server, which may not be possible in some situations. In offline mode, two phases are required to generate your classes. The first phase is the standard compilation using the javac tool that we all know and love. (In fact, most of us love it so much that we replaced it with an Ant task years ago.) The second phase is where things get interesting, we run the AWcompiler in offline mode and point it to the newly created class files. The compiler will then modify the bytecode of the classes to include your advice at the correct point-cuts, as defined in an XML file. The benefit of using the offline mode is that the classes will run in any JVM from version 1.3 and up. This is the mode that I will use in this article, as it requires no modifications to Tomcat and could be applied to most existing projects with only slight modification to the build process. " Java support AOP especially in Java EE 5 application development. Hope it helps. Thanks 1 Like |
Computers / Re: Linux Experts Only by mimohmi(m): 9:58pm On Jul 09, 2008 |
@wurdz Are you in lagos ? I have Ubuntu, kubuntu (Desktop version ie kde 4) 8 dvds. you can come with 4 dvds and 2 extra if you are interested in Fadora and knoppix live dvds. Call me on 080-347-91825. |
Computers / Re: Ubuntu Linux Live Dvd And 1000+page Practical Guide For Sale by mimohmi(m): 7:41pm On Mar 14, 2008 |
@FlyOver This your idea does not mean well for open source. Why do want to sell !!!!!!. We have been fighting to librate the world from the claws of people like the Gate and may be you. I have been the linux train for almost 6 years, as a member of so many linux forums, I have never seen a post like this. I beg let take NIGERIA in the open source market. Even in the holy book and I quote "Blessed is that giveth than he that receiveth" This is the spirit of open source. Let's learn to share. Please, do not feel insulted. Just trying to encourage you with the spirit we live with. Check: http://www.javaden..com Do a google search for mimoh and mimoh_mi, then post your comments. |
Computers / Re: Help On Installing Softwares On Ubuntu by mimohmi(m): 4:22pm On Mar 14, 2008 |
@ ojesymsym Ok, if I might add. Software for linux are packaged in very different format, depending on the distribution. e.g Red Hat uses rpm, debian uses deb. But when it come to packaging software for any brand of linux, there comes the .bin, tar, tar.gz. All these are archiving files like winzip. To install any of them, you have to uncompressed the tar file into a folder. Sorry depending the level you want to install the package. Set the file permission, if I want the application to read,write and execute by all the user of my linux box, I will just use the chmod command: sudo chmod 777 file_name To extract the file, you can use the archive graphical tool. Left click on the tar file and select open with archive manager or down and select extract here. After the extraction, you will see a readme file, in it all the process of installation will be stated. Once you identify the the file that contain the installation script. Type sudo ./file_name That's all. Any doubt ? Just Post |
Programming / Re: Javac Welcome1.java Could Not Compile The Application I Wrote,please Help. by mimohmi(m): 3:55pm On Mar 03, 2008 |
Check this link https://www.nairaland.com/nigeria/topic-8060.32.html |
Computers / Re: How To Set Up Evdo Card On Ubuntu by mimohmi(m): 6:15pm On Mar 01, 2008 |
@bigrovar No problem, you can go ahead with your plans. We live in an open world. @adewaleafolabi Hey, thanks man. I have been out for sometime. Hope to be seeing more of you. Actually had a look at the Ubuntu thread it is still much alive. Well done. @bigrovar As others had earlier said, in linux all PCMCIA devices are mounted as USB because PCMCIA devices are actually USB under the hood. All you ever need is to add product ID and Vendor ID to the device file. Your card will be recongnised. Also, there are other methods to connect the EVDO card, but they will always require you to manually edit some file. As a linux newbee, it was fun to do that. It was quite difficult to find what to add to which file and time not taken you could mess up your system. It is better to use tools that are provided and the tools will generate all the neccessary file for you. Hope it helps. |
Computers / How To Set Up Evdo Card On Ubuntu by mimohmi(m): 7:05pm On Feb 29, 2008 |
[b] With the introduction of 3G EVDO by most CDMA service providers, As usual they always tend to support microsoft windows. For linux users like us, we have no choice than to find the solutions to our very unic problems. Ok. To get the EVDO card running on your linux is simple. All you need are username and password. Ok. The user name is the number of the card@provider.com and password is the number on the card. Next, open your terminal and type the following commands: sudo tail -f /var/log/messages This will enable you see what is happening on your system. Next insert the EVDO card into your laptop. You will see that the system display information about your card. Note, You will see two mount points. Don't worry if you do not know the mount point to use. Next open another terminal and type: sudo wvdialconf this will automatically probe your card and give the mount point and speed. Next type sudo wvdial Linux will try to connect using the default setting written by the last command. It show you invalid user name, password and phone number. No problem. Next, type sudo pppconfig this will open a window that you will fill. Don't forget to delete pre-filled information and replace them with your own information. eg replace provider name with your own provider name. Remember to copy the last line of the wvdialconf command output. Use the best recommended speed. Ok. Other info are phone number: #777 userName: card number@provider.com password: card number Be sure to confirm from your provider. This information is for reltel users. Your mount point or port should /dev/ttyUSB0 When you are through with this, save and exit. And finally connect with this command, pon provider name watch the log terminal, you should see the you system, pry and secondary IP addresses displayed. Note: do not forget to select DHCP from the pppconfig window. open your web browser and hurry, you are up with your new connection. To disconnect poff provider name Enjoy it. Linux is the freedom of choice. Need help feel free to post [/b] |
Programming / Re: Compiling Programs On Ubuntu Platform Help! by mimohmi(m): 6:10pm On Feb 29, 2008 |
Hi all, It is very easy to install any program in any linux plateform especially debian base like ubuntu. First depend on the type of compiler you want to use. For Java developer, you can just install your eclipse IDE and up you go. sudo apt-get install eclipse that's all, all the dependent lib will be install for you. But if you choose to install the java se from sun, simple download the require version from their site. Most preferable the one with .bin extension. To install chmod 775 java se version.bin ./java se version then follow the options. Any more help just post |
Computers / Unbreakable Linux Unleashed by mimohmi(m): 5:29pm On Nov 12, 2007 |
Hey, Long time in the house. There is nothing as have a test of the first wine of the day. Ok, back to why am doing this. Some months ago, Oracle known for database and enterprise support came out with a bang ! ! A NEW VERSION of Enterprise linux. What does it hold for RED HAT, whoes Red Hat Enterprise isn't free. Since, I have used the Red Hat version, I decided to also take a look at the unbreakable. Besides, some oracle management features, all other aspect is similar to Red Hat. So, I will just keep the thread running, So that as we discover differences, we should be able to share. Welcome to the unbreakable world.
|
Computers / Re: Window Xp Installation Problem by mimohmi(m): 4:22pm On Sep 21, 2007 |
@voldemort Thanks for the effort. I have been doing alot on the problem. I will surely get over it. Because the HDD is a SATA HDD, i will require a 3rd party driver pre installed before I can think of installing the OS. If you get anything that can shorten my learning curve please do let me know. Once again thanks for the effort. |
Computers / Re: Window Xp Installation Problem by mimohmi(m): 4:17pm On Sep 19, 2007 |
But what is the way around it. The system had Win Xp before the crash. More so, I have removed the grahic card. |
Computers / Window Xp Installation Problem by mimohmi(m): 3:15pm On Sep 19, 2007 |
@ All Please, I need someone to rescue me from this mess. I bought a server system. After running it for about two weeks, the system packed up. After trouble shooting, I discovered that the RAM had gone bad. So, I changed it. Now the problem, anytime I try to reinstall the Operating System, I get the following error; 1. The computer may keep restarting and never start the GUI installation after the text mode Setup is finished. 2. The Setup program may stop, and you may receive an error message if the Setup program does not correctly detect the controller. On further reading, am not sure for now, I think an OEM driver. So, please, how and where can I get a storage OEM driver. And how do I install the stuff. Looking forward for your response. Thanks |
Programming / Re: Compiling A Java Program by mimohmi(m): 6:19pm On Sep 12, 2007 |
@segebee Ok, you can check this link for more details and examples https://www.nairaland.com/nigeria/topic-8060.0.html Hope it will help you. |
Programming / Proposed Nigerian Software Developers Forum by mimohmi(m): 4:34pm On Sep 09, 2007 |
Hi All, I have been having this idea for a long time now, and I think this is the right place to seek for opinions. Basically, I noticed there are people in Nigeria, especially, among the younger ones seeking for a career in the IT field. Very often, they give up their quest due to either lack of guidance, encouragement, materials and money. So, I strongly believe that I can get people with some experience to help out on this. I must say, it going to be absolutely free. I intend to start with selected secondary schools and with a quarterly session for under graduate and other much older people. So, what are the profit ?. First, development of your own skill, make a name for yourself and most importantly, service to humanity. How do I intend to fund the project. Am not expecting it to be easy. I intend to start the funding myself, and if it progresses well. I intend to seek sponsorship from Sun Evangelist Group, Private Sectors. So, please, if you identify with this epic project and want to be part of it. Please do send me a mail on the email address below, identifying you area of specialist. Never mind, if you also want to learn from the project, also do indicate that. As, I hope to have a test run of the first seminar/workshop before the end of the year. Participants will selected from entries received from nairaland. So, Let's join hands with an open source spirit to give our nation a brighter IT future. Looking forwards for your responses. The mail address is mimoh2000@gmail.com |
Programming / Re: Javafx For Gui Developer by mimohmi(m): 4:03pm On Sep 09, 2007 |
@Seun Hey, long time. Been out of the forum for a while now. Actually, most of the JavaFx example online uses the Java Network Launch Protocol. That means you have to run them with javaws tool available with the jdk. To run, just use javaws -offline <your-jnlp-file-name>. You can use just type the command without any option to display other available options. Also, you can click the java Web start icon in your control panel for the GUI version. For deployment, you often deploy the application as a jar file. Well, I think, it JavaFx is going to be a thing for the future. Thanks |
Programming / Re: Javafx For Gui Developer by mimohmi(m): 4:05am On Sep 09, 2007 |
Let compare two code that uses Java Swing and JavaFx. I just want to show the ease of use. So, let's get codes that that display a button. Am using netbeans 5.5 Here is the swing code. package javaswingapp; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; /** * * @author Musa */ public class Main extends JFrame{ JFrame frame; JButton btn; /** Creates a new instance of Main */ public Main() { } /** * @param args the command line arguments */ public void buildUi(){ frame = new JFrame(); btn = new JButton("Press Me" frame.getContentPane().add(btn); // btn.addActionListener(new ActionListener() { // public void actionPerformed(ActionEvent e) { // btn.setText("Am Pressed" // } // }); frame.setTitle("Swing Demo" frame.setSize(400,500); frame.setVisible(true); } public static void main(String[] args) { // TODO code application logic here Main m = new Main(); m.buildUi(); } } JavaFX Code import javafx.ui.*; Frame{ title: "Press Me" width: 200 content:Button { text:"Press me" } visible: true }; Notice how declarative it is. Under the hood, it is still a swing appearance |
(1) (2) (3) (4) (5) (6) (of 6 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 93 |