• 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

Trying to get jar to run GUI

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, full disclosure, I'm REALLY new to JAVA and my code will probably make some of you scream in agonizing pain. If you see something I can improve on, such as taking all these strings and combining them somehow so all of my buttons have access to variables like tn, newtn, origtn, coe, newcoe, origcoe, that'd be wonderful.

I've also had a hell of a time figuring out how to get my if then statements working. I want to check to see if textfield is empty, else run through the checks for which radio button is selected, but that seems to throw errors. Maybe because I'm checking the state of a textfield in one part of my if statements and radio buttons in the next part?

I wanted to put a jbutton in to copy my ReturnField text, but don't know how to plug that code into a button.

ABOVE ALL ELSE, I need to figure out why the only way I can see my GUI is by clicking run in Netbeans. Running the jar just... runs it. No GUI:
java -jar "C:\My Documents\NetBeansProjects\SwitchOverlay\dist\SwitchOverlay.jar" = no GUI popping up.




 
Anthony Schmitt
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Figured out the GUI. SwitchOverlay.java is an unnecessary file. Set it to run OverlayGUI.java, built, and run fine.
 
Anthony Schmitt
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Got the copy button to work, too.
 
reply
    Bookmark Topic Watch Topic
  • New Topic