DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2005
    Posts
    3

    how to organize panels

    i am trying to create a simple program for selling lemonade using panels among other things, i am currently having problems organizing my panels i have attached a zip containing the .java file and a jpeg of what i want it to look like, all help would be greatly appreciated
    Attached Files

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560

    A partial solution is here.

    Proper handling of numeric input failure is not included, and the "Amount"
    header is not there.
    Ive used two listeners to make the applet more responsive.
    Attached Files
    eschew obfuscation

  3. #3
    Join Date
    Jun 2005
    Posts
    3
    when i try to run it i get this error

    java.lang.NoClassDefFoundError: scoop/LemonPanel

    and this is for a school project where we are just learning very basic java i am trying to keep to action and item listeners and the few lines of code that i used, my real problem is visual organization. thanks

  4. #4
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    Remove the package directive on top of source file.
    eschew obfuscation

  5. #5
    Join Date
    Jun 2005
    Posts
    3
    mmm now i get this error

    java.lang.NoSuchMethodError: <init>

    sorry if i am n00bish

  6. #6
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    Well, it must be your setup, you must recompile and upload all classfiles. If
    not ok then post your html and jaba source here.
    eschew obfuscation

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links