This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

siva chaitanya

Ranch Hand
+ Follow
since Jul 05, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by siva chaitanya

Please i request don't give me outdated answers i keep on searching in the Google but my doubt is not clear . Reusable means java bean that is developed in one project can be used in another project right how it is possible to use in another project and what is the difference between EJB and java bean
7 years ago
When i try to create a new JDialog Form in netbeans by default it is generating nimbus look and feel but i want to remove it which i cannot because can we delete default generated code ?
7 years ago
But GroupLayout is the default one in Netbeans Platform Application i cant change it right now but i changed it in components creation tab i.e navigation tab . I set the layout as Border Layout
7 years ago
Thank you so much Michael Dunn i got it, the problem is as you mentioned i have initialized JList both in constructor and in initComponents() method. Actually i am using netbeans platform application for swings so initComponents() method is default generated code in that JList is initialized so i removed the JList countriesList = new JList(); line in constructor it works.

But can you please solve another problem.

When i try to drag the window the JPanel is also moving but i want to fix the position of the JPanel is it possible ?
7 years ago
But i can't able to get the values from countriesList even if i try to print the value on console after clicking the button i am getting this value '[I@30186b31'
What is this value ?
When i try to print it in option pane it is saying index -1 means no item selected right
7 years ago
I am taking two JLists countriesList and displayCountriesList i populated data in the countriesList and when i click one button, the selected element in the countriesList is added into the displayCountriesList
This is the actionPerformed method when the button is clicked

7 years ago
How to get the selected elements from JList . I tried everything using getSelectedValue(), getSelectedIndices() but i can't able to make it.
7 years ago
How can i set fixed position for JPanel ?
When i drag the window to the right side the panel also changing its position to the right. So how can i set fixed position of JPanel even when i drag the window ?
7 years ago
Ya i have seen the frame and also the JList but i can't see the elements in the jlist
7 years ago
Can't able to add elements in JList. I have taken DefaultListModel and JList to add elements but i can't able to make it. This is the code.

7 years ago
which jar i need to add to my application to use JXLoginPane class ?

I am using Netbeans IDE and using netbeans platform application for swings
7 years ago
can you please explain me the definition
Hi harshvardhan thank you for your reply can you please give me some real time example of EJB and what is the use of exposing the business methods through EJB
As far as i know java bean has private member variable, getters and setter methods used to map the input parameters with the fields in the database and EJB is a server side component has some business service methods and these methods called from the client side. Correct me if i am wrong and please tell me the exact difference.
My project struture is like this



web.xml



index.jsp



struts.xml



TutorialAction .java

7 years ago