Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Understanding Java


  • Please log in to reply
6 replies to this topic

#1 scotty_dont

scotty_dont

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Louisiana
  • Local time:06:14 AM

Posted 11 February 2015 - 07:50 PM

Hi everyone

 i have been looking for a good programmers forum the past few days, from facebook groups, to yahoo groups, to smaller communities based out of non tech forums. Finally decided to just google one and found bleeping computer. I have always been very passionate about computers in general and after a few years of doing different jobs have decided to try and earn a degree. I wanted to start with programming, and was informed to start with java since it is so widely used. The first book i picked up was Java for dummies by Doug Lowe. I had just picked it up and started thumbing through it when it recommended "Java 2 for dummies" if you were pretty new to programming in general. Anywho, I wanted to give java programming a shot on my own before dedicating myself to a degree in it, if i do not enjoy it i may try for a certificate in software security or something else, just trying to narrow down a field that i would enjoy.  Back to my question though, I have been playing around some with Python and i found it to be pretty interesting but i feel i skipped some programming basics somewhere. All of the tutorials i have checked out so far have included strings/loops and various commands for doing math, but where does one start with developing a program ( and no i do not mean the 'hello world' program lol)? How do you develope a GUI with code? Should i try to find the Java 2 for dummies book, if it really is more for beginners? or should i be fine with the book i have? should i try and find open source java programs and look at the coding and variables they use and learn from them?

 

 

Any help at all is greatly appreciated. Sorry for the wall of text, just an eager person looking to get started with programming.



BC AdBot (Login to Remove)

 


m

#2 ChiefTech

ChiefTech

  • Members
  • 70 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Oregon
  • Local time:04:14 AM

Posted 12 February 2015 - 12:14 AM

It's always great to check out open source. You can gain a lot of ideas so long as you aren't copy and pasting away like a 'script kiddie(LOL).'

However, what type of program are you trying to code? Is it web based or are you trying to program a windows application? If you're trying to code something that runs on windows like an .exe then you should stap away from Java and move into something more like visual studio programing in c# or vb.net.

Edited by ChiefTech, 12 February 2015 - 12:15 AM.


#3 scotty_dont

scotty_dont
  • Topic Starter

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Louisiana
  • Local time:06:14 AM

Posted 12 February 2015 - 07:33 AM

thanks for the tip! I was wanting to start out with something simple, any tips on that would be great. Not sure how difficult a basic web browser would be to code. i followed a tut to make one with python but it pretty much just leeched off of IE and i didnt feel very accomplished afterwards lol. Maybe a script to organize pictures/song by alphabetical order. I honestly have no clue where to start. i read a few chapters in my java book last night and can see it is really leaning towards web based stuff. but yes, my OS is windows 7 and if i wrote applications i would like them to either run on it, or maybe be transferred over to my kindle.



#4 ChiefTech

ChiefTech

  • Members
  • 70 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Oregon
  • Local time:04:14 AM

Posted 12 February 2015 - 11:26 PM

You should check into visual studio Visual Basic.net or c#.
Maybe go get a book or search for some examples.
Basically you're looking to create a Windows Form Application. If c# is a little bit much for you then try to move on to vb.net.

The version you'd be using would be visual studio for windows desktop. (Link:http://www.microsoft.com/en-us/download/details.aspx?id=44914) unless you want to dabble in windows apps that are live tile style windows 8 applications.

I would reccomend starting with the windows desktop applications and creating a windows form application.

Check out visual studio free downloads here:
http://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx

Making apps for andriod devices is done via the andriod sdk. More information can be found here: https://developer.android.com/training/basics/firstapp/index.html

Additional kindle specific information can be found here:
https://developer.amazon.com/public/resources/development-tools/ide-tools/tech-docs/04-creating-your-first-kindle-fire-app

Also you can refer to this article to help you find your way around visual studio while you create your first form application.
https://msdn.microsoft.com/en-us/library/dd492132.aspx

Also here is a web browser code project in c# that you might find helpful) I haven't tried this one personally. Make sure you virus scan if you download but it looks like he walks you through the code on the page.
http://www.codeproject.com/Articles/60179/Web-Browser-in-C

Edited by ChiefTech, 13 February 2015 - 12:24 AM.


#5 scotty_dont

scotty_dont
  • Topic Starter

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Louisiana
  • Local time:06:14 AM

Posted 13 February 2015 - 04:29 PM

thanks a ton! so much info here :D



#6 Delta-V

Delta-V

  • Members
  • 11 posts
  • OFFLINE
  •  
  • Local time:05:14 AM

Posted 13 February 2015 - 09:10 PM

The short answer to how to design a GUI with code in java is "Swing".

Here is a link for Oracle's own Swing tutorial

 

http://docs.oracle.com/javase/tutorial/uiswing/index.html

 

And here is a the interface and class summery:

 

http://docs.oracle.com/javase/7/docs/api/javax/swing/package-summary.html

 

Now the long answer is a question of program design, you have to ask yourself " What are the design goals of the program.?"

 

Are you making a GUI for the sake of making one? If this is the case you should next research how to use mark-up languages to make the GUI appear nice.

 

Or are you integrating this into a the design of a project, in which case you should research program design methodologies. 



#7 scotty_dont

scotty_dont
  • Topic Starter

  • Members
  • 4 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Louisiana
  • Local time:06:14 AM

Posted 14 February 2015 - 09:03 AM

Thanks for the info Delta. for GUI it is just for the sake learning the basics of making one.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users