This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!

Sheraz Ahmad

Greenhorn
+ Follow
since Oct 24, 2019
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 Sheraz Ahmad

when I design a custom jframe form in netbeans.it may be a simple button or a complex calculater.Then if I want to add these custom components in netbeans pallete so that
I can reuse it in any jframe by just drag and drop.when I select my custom jframe from project window and right click and  goto 'tools' and then 'add to pallete',this jframe is added in pallete.but when and try to drag and drop it on my any jframe it gives following error.

cannot load component class practice(project name).calculater from project e:\wdd\idework\practice.
the class could not be found.note that class must be compiled and must be the part of sources or dependencies of the project
where the target GUI belongs to.

note that my custom component which I want to add in pallete is compiled and run and I am trying to drag ang drop it on another jframe of the same project.
kindly guide me what is proper way of adding custom components made in netbeans in its pallete to reuse it again and again.
regards
1 week ago
when I design a custom jframe form in netbeans.it may be a simple button or a complex calculater.Then if I want to add these custom components in netbeans pallete so that
I can reuse it in any jframe by just drag and drop.when i select my custom jframe from project window and right click and  goto 'tools' and then 'add to pallete',this jframe is added in pallete.but when and try to drag and drop it on my any jframe it gives following error.

cannot load component class practice(project name).calculater from project e:\wdd\idework\practice.
the class could not be found.note that class must be compiled and must be the part of sources or dependencies of the project
where the target GUI belongs to.


note that my custom component which I want to add in pallete is compiled and run and I am trying to drag ang drop it on another jframe of the same project.
kindly guide me what is proper way of adding custom components made in netbeans in its pallete to reuse it again and again.
regards
1 week ago
following is only constructor in my class .
public MyCalculaterGUI()
{
initGUI();
}
now please tell me how should it look like to solve the above mentioned problem.
regards
1 week ago
i am a java beginner.i had built a java program MyCalculaterGuI in notepad,compiled and run it on commond prompt.now i am using netbeans 11.1.i have created a jar file of MyCalculterGUI.class by commond prompt.it runs,works fine.now when i want to add MyCalculater.jar file in my netbeans swing controls as a custom component so that i reuse it
by just drag and drop in any JFrame form.first i added this jar file in my gradle project custom library 'libs' folder which is included in project dependencies.then i added this jar file into swing control by pallete manager.MyCalculater.jar is added in swing control.but when i drag and drop it.it gives following error.
component instantiation error
failed to create an instance of pkg/MyCalculaterGUI class
the class itself was loaded but intantiating failed............
please guide me.
regards
Sheraz Ahmad
1 week ago
I am using netbeans 11.1.when i pick and drop any component on jframe form like buttons,textfields etc and open its properties by right click and select propertis.
property windows opens and its vertical scroll bar expands upto miles and i cannot see and set components values.any help?
3 weeks ago
i am using netbeans 11.1.when open propertyy box of any component in jframe form by right clicking it,the property box open but its vertical scroll bar expands as much as
i cannot open and set any property of that component.any help?
3 weeks ago
i am using netbeans 11.1.when i create a jframe and pick and drop components on jfarme.in the source code all the components are declared and initialized inside the initComponent method.thus these are not accessable in the class. any help?
for example i create a jframe form drop some componenets on it and here is initComponent method code.
following is the auto generated code @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
javax.swing.JButton add = new javax.swing.JButton();
javax.swing.JButton search = new javax.swing.JButton();
javax.swing.JButton delete = new javax.swing.JButton();
javax.swing.JTextField name = new javax.swing.JTextField();
javax.swing.JTextField address = new javax.swing.JTextField();
javax.swing.JTextField phoneNum = new javax.swing.JTextField();  

and so on
any help?
3 weeks ago