Installing SwingX in Netbeans - java

I have problem installing SwingX in my Netbeans IDE. I want to play with JXPanel and related components but i could not get right library and get it going.
I tried to download swingx.jar but there is no valid link available in internet. I somehow managed to download swingx-1.6.jar, swingx-beaninfo-0.9.7 and swingbean.jar. I imported these jar files into the new library i created "SwingX" using tools->library and after that went to tools->palette->Swing/AWT Components and added a new palette group called SwingX and added the created library (SwingX) into it. Now i get a block in my IDE as shown in the figure.
Picture 1
Then i added the library into my project which is shown in the picture 2 and when i tried to insert JXXollapsiblePane from the pallete group into a JFrame i am gettign the following error shown in picture3.
Picture 2
Picture 3

Add swingx-1.6.jar to your project instead of swingx-beaninfo-0.9.7

Related

While clicking on the contect asist sample codes are not showing on the eclipse?

When I'm using ctrl+space for content assist there is no sample code that is popping in my system. It only shows the content assist.
Sample code like this image is not showing for me
did you add the library needed like for example if you're using TestNG you should add it's library the same thing applies for Junit you can do it by
going to configure build path --->add library
(also don't forget the selenium you should add its jar)

Make android project in old template in new version of ADT and SDK

In consider of the problems i had when updating ADT and SDK, like Unwanted appcompt_* project and ... that i created a ticket here:
http://code.google.com/p/android/issues/detail?id=68592
The Adt doesn't create default hello world project:
http://code.google.com/p/android/issues/detail?id=66647
With update this problem solved but another problem produced. create unwanted project while make a new project:
http://code.google.com/p/android/issues/detail?id=66975
so i found a solution to make project like before in old template see answer
I found a solution that i share here and just follow these steps:
In Adt create android project and in first wizard choose API 14 as min SDK version
Press Next until you reach to last wizard and choose Main for all three fields
Open Main.java file and delete the lines highlited in red:
Now your file becomes to this and error disappear:
Also you have one main layout xml file:
Done. Now your project works like before
Really? is this a 'solution' for the actual problem? What if my project needs to use ActionBar and other items from the Material Design package?

Eclipse Error: The refactoring does not change any source code

i have done one small coding in mainactivity.java and now i have to create another java in src folder in android eclipse but i am not able to do it
i want to create as shown below
so i want to create new class stackinfoactivity .
i click on the next after choosing android activity in the menu menu
i choose blank and hit next
details entered and click on next button
instead of creating a class i am getting an error i have added all the unique details is there any problem with my eclipse i need to correct my eclipse
i clicked on finish button the activity will not get created i have colored the image above
please anyone suggest me how to correct and get rid of this error
Check if you have older version of ADT plug-in.
You need to update ADT plug-in after updating SDK manager.
Not just select "Help->Check for Updates" but select "Help->Install New Software..." and select the ADT site to install newer version of ADT plug-in.
The recent version of ADT plug-in is 22.6.0.v201403010043-1049357
I had the same problem after I upgrade SDK manager and my ADT-plugin is 22.3 at that time. "Check for Updates" always tell me no update available.
You can do this also like following way.
Right click on your Package name that is com.redpot.stockquote folder of your project then select new then select class you will get window like following images. (Please follow link as i don't have enough reputation to post images here)
http://share.pho.to/4tXRY
Here in Name just enter your activity name like StockInfiActivity. And then select Finish and you will see your Activity in your src folder.

Google AppEngine Enhancer: Encountered a problam: Unexpected exception

Possible duplicate of Google App Engine JDO enhancement is failing.
This is my first app engine app which I'm implementing based on "appengine-java-sdk-1.8.8" and Intellij Idea 13.0. Following image shows my application.
I have designed my application based on tutorial on Intellij Idea page.
In web.xml file if I clear lines 8-18 and remove mobilesoft.asia package from src folder then application works fine and when I click on Run button then I can see my "Hello world" message that I have written on index.jsp file.
However, with having of my package and lines 8-18 in web.xml then exception happens when I click on Run button.
Any suggestion would be appreciated.
==============
Edit: I downloaded 'datanucleus-appengine-2.0.0-final-dist' via this page. Seems it is latest release. Then I compared with what items I found under appengine-java-sdk-1.8.8\lib\opt\tools\datanucleus\v2 and realized that seems appengine has newer version of datanucleus. Therefore, app engine shouldn't have problem with compile, I'm confused....
finally I found the solution. I set 'Persistence' to "JPA 2" during creation of project. By set it to "JPA 1" problem solved (I don't know why) and I am able to compile the project.
So, select your project from Project panel. Then hit F4. Project structure opens. Select Google App Enfine from middle panel (under name of your project). Set Persistence to "JPA 1".

Netbeans JApplet Webstart - icons not appearing on button when run

Hey there - just wondering if anyone knows the trick to getting icons to display on button in a JApplet. When I add the icon from a png in my package via the properties panel it turns up in the NetBeans IDE as expected but when I run the launch file it isn't there. I can confirm that the file exists in my Jar and no exceptions seem to be thrown in relation to missing files.
If I create a similar application using a JForm and run it directly from NetBeans the icon appears as expected.
EDIT:
It seems this is confined to Chrome... works correctly in IE9 and FF 3.6
EDIT:
Replicate as follows - no coding required:
Create a NetBeans 6.9.1 Project with the following settings:
Java --> JavaApplication
[Next>]
Name e.g. JavaApplication1
Untick "Create Main Class"
[Finish]
Add a png image "MyIcon" to the src directory.
Right Click "JavaApplication1" Project in Projects panel and select New -> JApplet Form
[Finish]
Drag a button onto the form, right click -> properties -> icon and choose "MyIcon" from the pre-populated dropdown menu. You should see the icon appear on the button in the IDE.
Build the project, then navigate via explorer to the dist/launch.html file and run it in Firefox or IE and the icon will be there, run it an Chrome 10 and it won't.
It seems this problem magically went away and now I wish I had noted the exact version of Chrome that I had so that I could tell whether it updated or not. I worked around the problem but inadvertently left an icon on a button - I started work again today on my project and how-you-doing there was a lonely icon on a button - there are three possible reasons why this happened:
1 - I shut down my machine overnight; aka restart (93% Sure this was it)
2 - I moved the entire Netbeans project to another directory (5% Sure this was it)
3 - maybe but unlikely Chrome updated itself with a fix (2% Sure this was it)

Categories