Small issues with netbeans6.1 on desktop application on Ubuntu

Source: Internet
Author: User
Tags gtk
Netbeans is really great. You can build a project to operate the database directly and use it conveniently.
This is the image.

First, create a project and select Java-desktop application.
Next, select database application in choose application shell.
Next
Finally, select new database connection in master connection.
I am using MySQL, so I need to select MySql,
Enter the url jdbc: mysql: // localhost: 3306/database_name
And user name, password
Finish and run.
Very nice, but on Ubuntu, I didn't use the default skin of the system, so this bug occurs.
Run:
14:44:51 org. jdesktop. application. Application create
Warning couldn't set lookandfeel application. lookandfeel = "system"
Java. Lang. nullpointerexception
At javax. Swing. plaf. synth. synthlookandfeel $ aatextlistener. propertychange (synthlookandfeel. Java: 793)
At java. Beans. propertychangesupport. firepropertychange (propertychangesupport. Java: 339)
At java. Beans. propertychangesupport. firepropertychange (propertychangesupport. Java: 347)
At java. Beans. propertychangesupport. firepropertychange (propertychangesupport. Java: 276)
At java. AWT. toolkit. setjavastopproperty (Toolkit. Java: 1784)
At sun. AWT. suntoolkit. firehose topfontpropertychanges (suntoolkit. Java: 1698)
At sun. AWT. suntoolkit. setaafontsettingscondition (suntoolkit. Java: 1743)
At sun. Swing. swingutilities2 $ aatextinfo. getaatextinfo (swingutilities2.java: 119)
At com. Sun. java. Swing. plaf. GTK. gtklookandfeel. initcomponentdefaults (gtklookandfeel. Java: 1258)
At com. Sun. java. Swing. plaf. GTK. gtklookandfeel. getdefaults (gtklookandfeel. Java: 294)
At javax. Swing. uimanager. setlookandfeel (uimanager. Java: 537)
At javax. Swing. uimanager. setlookandfeel (uimanager. Java: 581)
At org. jdesktop. application. application. Create (application. Java: 249)
At org. jdesktop. application. Application $ 1.run( application. Java: 169)
At java. AWT. event. invocationevent. Dispatch (invocationevent. Java: 209)
At java. AWT. eventqueue. dispatchevent (eventqueue. Java: 597)
At java. AWT. eventdispatchthread. pumponeeventforfilters (eventdispatchthread. Java: 273)
At java. AWT. eventdispatchthread. pumpeventsforfilter (eventdispatchthread. Java: 183)
At java. AWT. eventdispatchthread. pumpeventsforhierarchy (eventdispatchthread. Java: 173)
At java. AWT. eventdispatchthread. pumpevents (eventdispatchthread. Java: 168)
At java. AWT. eventdispatchthread. pumpevents (eventdispatchthread. Java: 160)
At java. AWT. eventdispatchthread. Run (eventdispatchthread. Java: 121)
14:44:51 org. jdesktop. application. Application $1 run
Severe: Application class dbinout. dbinoutapp failed to launch
Java. Lang. nullpointerexception
......

Therefore, you need to select Java default in look & feel of the desktop app in the property, so that it is OK...
Hey, get the basic usage of an interface database in 2 minutes...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.