Win a copy of Kotlin in Action this week in the Kotlin forum!
    Bookmark Topic Watch Topic
  • New Topic

need help checking this code  RSS feed

 
Jesse Crockett
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Report post to moderator
The following code should display a box with 7 rows and 2 columns and two buttons. It's an assignment that doesn't need to function beyond running the proper display, but when I run it, all that goes right is that the box is generated with the title "Calculation of Property Taxes" with nothing in the box where the labels, text fields, and the two buttons should be. I have followed the textbook exactly for this example. I wonder if there is a problem with my computer or something, because this should work. Will you compile and run this code, and tell me if all you see is the titled but empty box?

 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Report post to moderator
run your program
drag one of the borders wider or taller

if they 'magically' appear, look at 'when' you are setting
the frames visibility to true.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
That's the answer, although apparently a bit too Socratic. A more detailed answer is here, where any discussion can continue.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!