• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Want to use BorderLayout and other stuff...need to merge code

 
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Original code, Test.java and TestApp.java.
Goal: To merge the two pieces of code so I can use BorderLayout and other things. My main thing I want to do is to have JFrame frame = new JFrame(); and the rest of my main code together so I can do special things.
Test.java:

TestApp.java:

I'm relatively new to Java. I got referred to this website by two Java books, "Java for Dummies" and "Head first Java". I am about 2/3 done with Head first Java and am finished with Java for Dummies. The section I am at is talking about Layout Managers and such. I have tried this before, but I do not believe it is possible the way I have set up my code. I don't know how to have the code separated where I can do the things I want to do. Can anyone point me in the right direction? If you need more clarification, I will give it to you. PS: I have not gotten to the TCP/IP chapter so I don't know how to do the Buffeted Server stuff. Please just help me on stringing together the code.
Thanks,
cc11rocks
 
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic