• (4 Pages)
  • +
  • « First
  • 2
  • 3
  • 4

Creating a Calculator using JFrame Rate Topic: ***** 7 Votes

#46 CalPang  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 9
  • Joined: 13-March 16

Posted 14 March 2016 - 02:50 AM

Great tutorial, I went through all of it myself and found it very intuitive and taught me quite a bit !

Thanks !
Was This Post Helpful? 0
  • +
  • -

#47 Picachoo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 04-May 16

Posted 04 May 2016 - 09:00 PM

Hi schutzzz

Thanks very much for nice roll over on JFrame calculator!

I'm facing one problem, as I type 23.2 like anything after '.' ; 23 disappears. The result because of this doesn't come correct.
Any advise !

I have also attached a copy of my code here.

Thanks a lotta!
Picachooo

Attached File(s)


Was This Post Helpful? 0
  • +
  • -

#48 jamiehennings  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 10-April 17

Posted 17 April 2017 - 01:53 AM

Hello,

I'm trying to make a calculator with JFrame. I'm only gonna make the appearance of the calculator (not functioning). The numbers and operators are supposed to be arranged this way:

7 8 9 +
4 5 6 -
1 2 3 x
# 0 * /

however, I only know borderlayout and flowlayout. Is there any layout or anything that will make the operators and number arranged that way (above)?
Was This Post Helpful? 0
  • +
  • -

#49 ndc85430  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 612
  • View blog
  • Posts: 2,584
  • Joined: 13-June 14

Posted 17 April 2017 - 02:09 AM

There are a number of different layout managers you can use. Have a look at this - one of them is particularly relevant.
Was This Post Helpful? 0
  • +
  • -

#50 megawatt  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 8
  • Joined: 23-July 17

Posted 23 July 2017 - 10:00 PM

I think this is good. I'm around 33% of the way through the tutorial at the part where the "For" loop is explained. I just want to add a little bit of critique, I thank you for making this tutorial but it could use improvement, and that is that I wish there was more explanation on JFrame. For example, there's more text teaching teaching how the "For" loop operated rather than how to use JFrame, at least up to the part I am at. And I think anyone to make it to that part where I'm at, would know how a For loop functioned, because we just typed in a lot of intermediate code already, and for loops are beginner level.

So yeah that is my only comment for improvement. I'm following along so far, but for the most part I've just been copying code down, and haven't learned much about JFrame when I thought the tutorial was about JFrame. Will edit/post new comment once tutorial is done for final update and what I think overall.
Was This Post Helpful? 0
  • +
  • -

#51 D4rKlInK  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 05-September 17

Posted 05 September 2017 - 12:30 AM

Why is the answer on the calculator in a double?
Was This Post Helpful? 0
  • +
  • -

#52 ndc85430  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 612
  • View blog
  • Posts: 2,584
  • Joined: 13-June 14

Posted 05 September 2017 - 12:35 AM

Why wouldn't it be? If you just used an integer, you'd lose anything after the decimal point.
Was This Post Helpful? 0
  • +
  • -

  • (4 Pages)
  • +
  • « First
  • 2
  • 3
  • 4