started a new java program

dylanwerre

Member
Member
Messages
46
Location
belgium
hi guys i just started a new java program(its a simple program but i am just a beginner) and you can check it out in the attachement below, if you have any tips on making it better or look better or anything else, please let me know:D

the .jar is in the zip file
 

Attachments

  • test.rar
    3.3 KB · Views: 88

My Computer

System One

  • OS
    windows 8 x64 pro
    Computer type
    PC/Desktop
    System Manufacturer/Model
    hp
    CPU
    AMd 5800k
    Motherboard
    msi
    Memory
    8gig 1600MHz
    Graphics Card(s)
    amd radeon hd 8470
    Monitor(s) Displays
    2* aoc 27 inch full hd
    Screen Resolution
    HD(720p)
    Hard Drives
    1tb wd caviar blue
    Keyboard
    razer blackwidow ultimate 2013
    Mouse
    razer naga molten edition
    Internet Speed
    fibernet 120Mb/s
    Browser
    chrome ofcourse
Looks like it does exactly what it's supposed to do, a temperature conversion. You even implemented the function inside a GUI. I'd say you're off to a good start for a beginner.

A coincidence, actually. I'm studying Java right now as well. I studied it once before, but I got sidetracked and didn't start studying it again until recently. I started over with a new Kindle book -- Sam's Teach Yourself Java in 21 Days. It's a great book, and so far I'm coming along okay. In fact, one of the examples that I typed in did the same thing your program does.

Heck, I'm sure as you become more proficient in the language you can add all kinds of bells and whistles to this little program. Maybe make the conversion go both ways, add some color, allow the user to copy the result to the clipboard, who knows? :)

Good luck. :)
 

My Computer

System One

  • OS
    Windows 8.1 Pro x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom built/assembled myself
    CPU
    AMD FX-8350 Black Edition
    Motherboard
    ASUS M5A99FX PRO R2.0
    Memory
    16 GB Crucial Ballistix DDR3 1866
    Graphics Card(s)
    Gigabyte Radeon R9 280X Windforce
    Sound Card
    On-board audio
    Monitor(s) Displays
    Dell UltraSharp U2713HM 27" LCD
    Screen Resolution
    2560 x 1440
    Hard Drives
    Samsung 840 EVO 250 GB SSD
    Western Digital Caviar Black 2.0 TB SATA-3
    PSU
    Corsair HX850W
    Case
    Cooler Master HAF XM
    Cooling
    Stock
    Keyboard
    Logitech MK520 wireless
    Mouse
    Logitech MK520 wireless
    Internet Speed
    22 Mbps
    Browser
    IE/Chrome/Firefox
    Antivirus
    Windows Defender, Malwarebytes
Looks like it does exactly what it's supposed to do, a temperature conversion. You even implemented the function inside a GUI. I'd say you're off to a good start for a beginner.

A coincidence, actually. I'm studying Java right now as well. I studied it once before, but I got sidetracked and didn't start studying it again until recently. I started over with a new Kindle book -- Sam's Teach Yourself Java in 21 Days. It's a great book, and so far I'm coming along okay. In fact, one of the examples that I typed in did the same thing your program does.

Heck, I'm sure as you become more proficient in the language you can add all kinds of bells and whistles to this little program. Maybe make the conversion go both ways, add some color, allow the user to copy the result to the clipboard, who knows? :)

Good luck. :)

thanks man, good luck with your studies .
but how do i change the color?
 

My Computer

System One

  • OS
    windows 8 x64 pro
    Computer type
    PC/Desktop
    System Manufacturer/Model
    hp
    CPU
    AMd 5800k
    Motherboard
    msi
    Memory
    8gig 1600MHz
    Graphics Card(s)
    amd radeon hd 8470
    Monitor(s) Displays
    2* aoc 27 inch full hd
    Screen Resolution
    HD(720p)
    Hard Drives
    1tb wd caviar blue
    Keyboard
    razer blackwidow ultimate 2013
    Mouse
    razer naga molten edition
    Internet Speed
    fibernet 120Mb/s
    Browser
    chrome ofcourse
:geek:hey man could you help me out here, i am making it able to calculate both ways and i want to have the radiobutton that calculates celcius-->fahrenheit set as checked when to program starts but i cant find help online so i will ask it here , ive put a new .jar in the attachement and this is my current code for that button

private void celciustofahrenheitActionPerformed(java.awt.event.ActionEvent evt) {

boolean JRadioButton = true;

}

that boolean thing i found online but i dont think its right .so could you help me out here:geek:
 

Attachments

  • test.rar
    3.7 KB · Views: 74

My Computer

System One

  • OS
    windows 8 x64 pro
    Computer type
    PC/Desktop
    System Manufacturer/Model
    hp
    CPU
    AMd 5800k
    Motherboard
    msi
    Memory
    8gig 1600MHz
    Graphics Card(s)
    amd radeon hd 8470
    Monitor(s) Displays
    2* aoc 27 inch full hd
    Screen Resolution
    HD(720p)
    Hard Drives
    1tb wd caviar blue
    Keyboard
    razer blackwidow ultimate 2013
    Mouse
    razer naga molten edition
    Internet Speed
    fibernet 120Mb/s
    Browser
    chrome ofcourse
Oh gosh, you know what, I'd really like to help, but I haven't reached the part of my book yet where it discusses how to build a user interface and change color and stuff like that. I'm still learning about classes in general.

I downloaded your updated program, and I see what you are trying to do. I assume you want one of the radio buttons to be selected by default, and only have one radio button selected at a time (right now you can choose both of them, which I assume you don't want).

Plus, I think to really get an idea of how you are doing this, I'd have to see the source code.

You know what, I know of a great site called Programmer's Heaven that has active forums for every popular programming language. If you just go there and look in the Java forum, maybe you can ask for some help from people that know more than me.

Here's the link: Programmer's Heaven - Ruby, .NET, C#, C++, PHP, Python, Java - It's all here!
 

My Computer

System One

  • OS
    Windows 8.1 Pro x64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom built/assembled myself
    CPU
    AMD FX-8350 Black Edition
    Motherboard
    ASUS M5A99FX PRO R2.0
    Memory
    16 GB Crucial Ballistix DDR3 1866
    Graphics Card(s)
    Gigabyte Radeon R9 280X Windforce
    Sound Card
    On-board audio
    Monitor(s) Displays
    Dell UltraSharp U2713HM 27" LCD
    Screen Resolution
    2560 x 1440
    Hard Drives
    Samsung 840 EVO 250 GB SSD
    Western Digital Caviar Black 2.0 TB SATA-3
    PSU
    Corsair HX850W
    Case
    Cooler Master HAF XM
    Cooling
    Stock
    Keyboard
    Logitech MK520 wireless
    Mouse
    Logitech MK520 wireless
    Internet Speed
    22 Mbps
    Browser
    IE/Chrome/Firefox
    Antivirus
    Windows Defender, Malwarebytes
Back
Top