NetBeans IDE Form Build
I am constructing a form using Netbeans IDE JFrame form.
When I try to test the form, the frame is a very small size, with only the close/maximise/minimise buttons showing.
When this from is adjusted in size, the main components appear.
This same thing happens when I compile and execute the main code of this form, apart from the fact that no components appear when I adjust the size of the frame.
Whats is wrong?
Thanks
Try using setSize(300, 300); (or some other sensible value)
Alternatively, add components to the form and call pack();
Blake
[email protected]
Similar Messages
-
How to build jms files using netbeans ide
hi,
i am using the latest netbeans ide to build a simple jms java file,
but i am getting this:
init:
deps-jar:
Compiling 10 source files to
C:\wrox\pro_jms\Chapter04\Test\build\classes
C:\wrox\pro_jms\Chapter04\AccountsDepartment.java:4: package
javax.jms does not exist
import javax.jms.*;
C:\wrox\pro_jms\Chapter04\AccountsDepartment.java:11: cannot find
symbol
the netbeans ide i am using is jdk_1.6, which when i use directly to
compile in command line mode, works. can anyone tell me why this is
happening?
thanks.I take it that you are trying to build a Java applicaiton that uses JMS API. To do it in netbeans using SUN OpenMQ I usually follow those steps:
1) I create a new project
2) I add JMS library. This is a library that I had created in netbeans using Library Manager. It consist of jms.jar ( this jar file contains the definition of JMS API). Next jar file is the implemention of the JMS API, in case of SUN OpenMQ it's imq.jar, but if you're using a different JMS provider it may be a different file. The last jar file in my JMS library is usually fscontext.jar, this jar file provides JNDI access to a file based store. Again if you're using something like ldap then it would be a different jar file.
That's basicly it - Tom -
Problem with Netbeans IDE 5.0: Building Gui
Hello,
I have the following problem with Netbeans IDE 5.0 (I made the same with netbeans 3.6 and it works properly):
Step 1) Create a myJPanel class (new JPanel Form)
Step 2) make a simple operation on myJPanel such as adding a JTable.
Step 3) Create a myJForm Class (new JFrame Form)
Step 4) Adding a JPanel to myJFrame (default name jPanel1)
Step 5) Select JPanle1 within myJFrame and go to code-> custom creation code and write "new myJPanel();"
this should set the jPanel1 (and all its contents and behaviours) created
in step 4 equals to myJPanel();
Step 6) run myJFrame;
........ and nothing happens. It is dispalyed just a gray JFrame.
It seems that myJFrame is able to istantiate myJPanel() but is not able to paint it. what's wrong?
Hope you may help me,
thxUnfortunately, Netbeans 3.6 files and Netbeans 5 files are not compatible. Except the Java source files, Netbeans uses other aditional files such as xml files etc for forming GUI and other reasons. I have also faced the same problem with you. Good luck.
-
Building AIR Applications with the NetBeans IDE
Hello Everyone,
Here's a link to screencast showing you how to Build AIR
Applications with the NetBeans IDE.
http://xwisdomhtml.com/netbeans-and-air.htmlNeat!
-
GUI Form Builder (Netbeans)
Hello!
I use the form builder to create and position 100 buttons.
To address these "builder formed" buttons in other code, I created an array .......
ArrayList<JButton> buttons = new ArrayList<JButton>();
The "Form Built" buttons are added to my array named "buttons" by adding this code snip in the "post creation" entry option within the Form Builder's code generation section like this ....
buttons.add(jButton1);
buttons.add(jButton2);
buttons.add(jButton3); //.....etc.
This all works fine, now I can address each of the 100 buttons (ie: change the background color) like this.....
JButton button = AddRFSwitchMain.buttons.get(but);
button.setBackground(new Color(a,b,c));
In reference to adding my "Form Built" buttons to my array, is there a way to add these buttons recursively? ie:
buttons.add(jButton(X)); // X = 1 to 100This is how I add the "builder generated" buttons into my array now....
buttons.add(jButton1);
buttons.add(jButton2);
buttons.add(jButton3);
buttons.add(jButton4);
buttons.add(jButton5);
buttons.add(jButton6);
buttons.add(jButton7);
buttons.add(jButton8);
buttons.add(jButton9);
buttons.add(jButton10);
buttons.add(jButton11);
etc.....
buttons.add(all the way out to button 100);
Can the same thing be done recursivily like this:
for ( int but=0; but<101; but++ ) {
buttons.add(jButton(but)); -
Cannot find class CustomerFacadeRemote in NetBeans IDE 5.0 Quick Start Guid
Hi,
I am new to Sun Java Studio Enterprise 8.1. I am follwing NetBeans IDE 5.0 Quick Start Guide for J2EE Applications example and got two following errors:
C:\SunStudioWS\CustomerBook\CustomerBook-war\src\java\web\CustomerDetail.java:41: cannot find symbol
symbol : class CustomerFacadeRemote
location: package ejb
ejb.CustomerFacadeRemote custFacade = lookupCustomerFacadeBean();
C:\SunStudioWS\CustomerBook\CustomerBook-war\src\java\web\CustomerDetail.java:41: cannot find symbol
symbol : method lookupCustomerFacadeBean()
location: class web.CustomerDetail
ejb.CustomerFacadeRemote custFacade = lookupCustomerFacadeBean();
2 errors
C:\SunStudioWS\CustomerBook\CustomerBook-war\nbproject\build-impl.xml:299: The following error occurred while executing this line:
C:\SunStudioWS\CustomerBook\CustomerBook-war\nbproject\build-impl.xml:141: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 1 second)
Here is the code:
* CustomerDetail.java
* Created on July 23, 2007, 3:27 PM
package web;
import java.io.*;
import java.net.*;
import javax.servlet.*;
import javax.servlet.http.*;
* @author yl
* @version
public class CustomerDetail extends HttpServlet {
/** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
* @param request servlet request
* @param response servlet response
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet customerDetail</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Servlet customerDetail at " + request.getContextPath () + "</h1>");
String customerNr = request.getParameter("customer_nr");
if((customerNr != null) && !(customerNr.equals("")))
try{
ejb.CustomerFacadeRemote custFacade = lookupCustomerFacadeBean();
out.println("Customer's info for nr. " + customerNr + ": " + custFacade.getCustomerInfo(
Integer.parseInt(customerNr)));
}catch(javax.ejb.FinderException ex){
out.println("Customer with nr. " + customerNr +" not found");
out.println("<form>");
out.println("Customer number: <input type='text' name='customer_nr' />");
out.println("<input type=submit value=Select />");
out.println("</form>");
out.println("</body>");
out.println("</html>");
out.close();
// <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
/** Handles the HTTP <code>GET</code> method.
* @param request servlet request
* @param response servlet response
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
/** Handles the HTTP <code>POST</code> method.
* @param request servlet request
* @param response servlet response
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
/** Returns a short description of the servlet.
public String getServletInfo() {
return "Short description";
// </editor-fold>
private web.ServiceLocator serviceLocator;
private web.ServiceLocator getServiceLocator() {
if (serviceLocator == null) {
serviceLocator = new web.ServiceLocator();
return serviceLocator;
private ejb.CustomerFacaderRemote lookupCustomerFacaderBean() {
try {
return ((ejb.CustomerFacaderRemoteHome) getServiceLocator().getRemoteHome("java:comp/env/ejb/CustomerFacaderBean",ejb.CustomerFacaderRemoteHome.class)).create();
} catch(javax.naming.NamingException ne) {
java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,ne);
throw new RuntimeException(ne);
} catch(javax.ejb.CreateException ce) {
java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,ce);
throw new RuntimeException(ce);
} catch(java.rmi.RemoteException re) {
java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,re);
throw new RuntimeException(re);
Thank you very much for any help.
ylouIn the code you have posted, some places refer to '.CustomerFacader' while others refer to '.CustomerFacade' leading to issues.
Also: Have you considered using NetBeans 5.5.1 as an alternative to JSE 8.1?
http://forum.java.sun.com/thread.jspa?threadID=5192837 -
Swing application with JavaHelp crashes outside Netbeans IDE.
Hi guys I have developed a small swing application in Netbeans IDE. I used the following code inside the IDE for JH.
public void createHelp()
try {
URL hsURL = new URL("jar:file:eDictionaryHelp.jar!/eDictionaryHelp/eDictionary.hs");
hs = new HelpSet(null, hsURL);
catch (Exception ee)
// Say what the exception really is
System.out.println( "HelpSet " + ee.getMessage());
System.out.println("HelpSet "+ helpHS +" not found");
JOptionPane.showMessageDialog(new JFrame(), ee.getMessage(), "Error", ERROR_MESSAGE);
hb = hs.createHelpBroker();
}When I run the program inside the IDE and and click on the corresponding MenuItem.. JavaHelp comes up as it should! No problems with that.
But when I build the project and tried to run it from the .jar file in the PROJECT_HOME/dist/ the swing got displayed till this function was called. and then it simply crashed.
Investigating further and commenting out one line at a time and compiling I found out that whenever the hs = new HelpSet(null, hsURL); is encountered, the app crashes (it doesnt throw any error).
But as I said this is not the case when i run and compile inside the IDE. I only get this problem when running the app from outside the IDE.
I have tried all kinds of combinations of the URL .. for eg ( I am aware of Bug 4149782)
ClassLoader cl = this.getClass().getClassLoader();
try {
URL hsURL = HelpSet.findHelpSet(cl, helpHS);
.What can be the problem guys? Any suggestions?
Thanks!Anyone has an answer on this?
I am facing the same problem.. I am using NetBeans 5.5
arijit_datta, do u have a solution for this problem already?
Thanks,
SK -
Error while saving form in Form Builder
Hi,
When i create and save form in XML Form builder i get an error "The Edit form does not contain a save button or link", I had even configured the save button but still i get this error. Does any one has idea about this issue.
Regards,
Ravi.Hi,
i got this resolved. What i observed was, if you try to place some input field in "renderlist or Show" form and you didnt palce save button then this error will come on saving the project.
try removing the input fields in those forms save it(still you face this issue) close the project and again save the project. this will get solved.
Regards,
Ravi. -
Running oracle form builder 10g in windows 7 64 bit
i am working in windows 7 64 bit
oracle db 11g enterprise edition 11.2.0.10 64 bit
form builder 10.12.0.2 32 bit
my default browser is Google Chrome
i have java 6 standard edition 1.6.0_34
when i am trying to run any form this message appear " java (TM) is required to display some elements in this page"
what can i do to run those forms?You can also refer to this OTN reference:
Oracle Application Server 10g (10.1.2) Certification Matrix
Other comments:
1. I would not recommend using Forms 10.1.2.0 with Oracle DB 11.2.x. Patching Oracle Forms to 10.1.2.3 would be recommended. Using version Forms 11 would be better.
2. Attempting to use the Developer Tools on Windows 7 is not a great idea although it can be made to work. Developer Suite 10 is no longer supported and was never really intended for use on Win7. Again, patching to 10.1.2.3 is recommended and required if you plan to follow the Oracle instructions and certifications.
3. Installing the Forms Builder (Developer Suite) on Win7-64bit is not at all certified and was never supported.
4. Using Java 7 was not certified and therefore not supported for use with Forms 10.x
In general, Forms 10.1.2.x has been desupported. Customer using this version or older should be working on a migration plan for getting to the latest supported version which is 11.1.2.1. -
Forms builder crashes when opening any pll
Hi,
I have gotten this problem that my forms builder crashes immediately when I try to open any pll file. (There is nothing wrong with the pll file - my colleagues can open these files with no problems on their computers). It crashes before the pll file is even remotely loaded - almost as if it encounters an error during the parsing of the pll file.
I have no problem opening and editing fmb files in my forms builder.
This problem has not always existed but it came all of a sudden one day and since its been impossible for me to open a pll file and its getting annoying :P
I run:
- Windows XP SP3
- Forms builder version info :
Forms [32 Bit] Version 6.0.8.26.0 (Production)
Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
Oracle Toolkit Version 6.0.8.25.0 (Production)
PL/SQL Version 8.0.6.3.0 (Production)
Oracle Procedure Builder V6.0.8.21.0 Build #1459 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle Query Builder 6.0.7.1.0 - Production
Oracle Virtual Graphics System Version 6.0.5.38.0 (Production)
Oracle Tools GUI Utilities Version 6.0.8.25.0 (Production)
Oracle Multimedia Version 6.0.8.25.0 (Production)
Oracle Tools Integration Version 6.0.8.18.0 (Production)
Oracle Tools Common Area Version 6.0.8.18.0
Oracle CORE Version 4.0.6.0.0 - Production
I tried deleting everything under D:\ORA6i where its installed and then reinstalling it - but the problem is still there.
Does anyone have an idea about what could be wrong - because I am clueless atm. - could it be some registry settings that somehow got changed maybe ?
Edited by: [email protected] on Sep 3, 2008 5:06 AMI have encountered various issues like this with Forms 6i over time and have tried numerous things to fix them - including complete uninstall of all Oracle products and reinstalls and the one thing I found to work best was to run a Registry Cleanup tool. I had the best success with Microsoft's RegClean.exe tool (originally released as a PowerTool), but it is getting harder to find now that Microsoft has desupported it and pulled it from their web site. There are a few places where you can still get it; www.cnet.com, www.zdnet.com, and www.majorgeeks.com just to name a few. Other Registry Tools will probably work fine as well, but this is the one I have history with. I did not have 100% success by cleaning the registry, but 50 to 75% of the time it fixed the issue without having to uninstall and reinstall Oracle Forms.
Disclaimer: Please exercise caution when doing anything with the Windows Registry. The smallest change could have serious effects. Always backup the registry or create a restore point with System Restore before you make any changes to the Registry!
Hope this helps.
Craig...
If my response or someone else's response answers your question - please mark your question answered. Thanks. -
How to include the inner classes in a jar file in netbeans ide
Dear java friends
how to say to netbeans ide that it has to include the
inner classes in the jar file.
(i have one single applet class
with two inner classes that show up
in the build/classes file but not in the jar).
The applet works in the viewer but not
in the browser (I believe because the
xxx$yyy etc should be in the jar)
willemjavFirst, please stop posting the same question multiple times:
Duplicate of http://forum.java.sun.com/thread.jspa?threadID=5269782&messageID=10127496#10127496
with an answer.
Second, If your problem is that you can't do this in NetBeans, you need to post to somewhere that provides NetBeans support - like the NetBeans website's mailing list. These forums do not support NetBeans (or any other IDE) - they are Java language forums. -
Problem with dynamic query in Forms Builder
Hi,
I need in forms builder cursor in procedure which parameter is a whole query. But i stuck when i wanna give some text in signs '' to procedure.
I wanna give like test('select ' ||'test' || ' from dual');
But this is not good beacuse it is missing ''.
Query which procedure get is select test from dual.
The right sql would be select 'test' from dual.
How could i pass signs '' to procedure.
Any ideas.
Thanks in advance.test('select ''' ||'test' || ''' from dual');Francois
-
How to validate multiple lines which is exist in the form builder at the same session
Hi All,
we are working on oracle Forms personalization to trigger the message at the point of saving multiple lines rather than requiring each line to be save individually. Currently the oracle form is allowing to user to enter two distinct lines that have same resource and basis type in BOM.
Currently the Oracle form is allowing to enter the duplicate combination and not giving any error message even we enter the same combination of data.
As per the customer requirement, they don’t want to validate the data while creating the records but when they try to save the form, in that case it should validate all the records at a time then need to display the appropriate message.
Customer don’t want to customize the Oracle standard form. Here we have only option to use form personalization or through custom.pll.
Any idea on how to validate multiple lines which is exist in the form builder at the same session as before inserting the record itself need to perform the validations for all the records.
Thanks for your help in this regard.
Regards,
Thirupathiyou can write a post script which will do the necessary tasks.
I mean, once you are done with inserting records into these tables, exeute another procedure which will insert these "extra" records, based on some logic.
you may not be able use DB trigger as it may generate mutating error or if you don't write it carefully, it will go into recursive loops as you are refering to same tables.
HTH -
Unable to configure Netbeans IDE for IDM
I am trying to configure Netbeans IDE for my IDM project. I am using Netbeans 6.8 with the compatible plugin with JDK 1.6.
For creating the project, I select Identity Manager Project and then provide the war file, that I create for my existing IDM installation(so that Netbeans IDM project is connected with my existing IDM project), and then select Configure repository later.
When I perform Build, I get the following error.
<Error during build>
Indexing C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\Idm-811\custom\WEB-INF\config\custom-init-postprocess.xml
C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\Idm-811\idm-staging\sample\admins.xml: Unexpected error parsing: com.sun.idm.idebridge.util.InternalError: com.waveset.util.InternalError:
==> java.lang.IllegalStateException: Error attempting to encrypt: Could not initialize class javax.crypto.SunJCE_b
com.sun.idm.idebridge.util.InternalError: com.waveset.util.InternalError:
==> java.lang.IllegalStateException: Error attempting to encrypt: Could not initialize class javax.crypto.SunJCE_b
C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\Idm-811\nbproject\nbjdk.xml:8: The following error occurred while executing this line:
C:\Documents and Settings\Administrator\My Documents\NetBeansProjects\Idm-811\build.xml:384: Object validation failed; see object validator error output for details.
BUILD FAILED (total time: 21 seconds)
</Error>
Anyone with similar issues, and workarounds would be appreciated.Use Netbeans 6.1 and Sun Identity Manager 8.1.1 and download plugin com-sun-idm-ide_8.1.0.20080630.nbm from http://java.net/projects/identitymanageride/downloads
Currently i have installed it and it is working fine for me.
OR
re-downloaded idm ide-bundle.zip respective to your idm version and try to craete project in Netbeans 6.1 and 6.8. -
XML Forms Builder Errors after SP Stack 14 upgrade
Hello,
I upgraded development portal to NW04s SPS14 (from SPS11).
In XML Forms Builder, try to open my existing project but not succedd. I get the message "Operation Timeout".
"The current operation timed out and was aborted. This was caused by network communication problems . Some data may have been lost.try again later"
After click cancel, I get a second message:
"There are no projects stored on the server"
In KM content, etc folder, xmlforms , I can see all my projects !!!
Of course, no network problems exists.. portal is working ok, ...
I applied OSS note 1150307 - "Internal Server Error when accessing XML Forms Builder" but I have the same problem.
Any idea¿?
Thanks and Regards
Noemí LlanoHello, I did a test...
from the same client machine ...(with JRE 1.6.0_03) I start XML Forms ....
with SPS11 portal, I can see the Projects.
With SPS14 portal, I can not see the projects
Thanks and Regards
Noemí
Maybe you are looking for
-
Hi, We are running a 10.1.2.0.2 forms application, using the sun jvm, version 1.5.0_11-b03 . Since we started using IE7, some users experience sudden "hangs" or a total crash of IE& + JVM when starting the application. A log file appears with the fol
-
'Missing Camera' icon with question mark!
I uploaded over one hundred movies from my camera. Some of them show up in my iMovie library but some have the 'Missing Camera' icon. The movies are in the iMovie contents folder as .mov files. so I know they are in my computer. Why won't they show u
-
I just ran an auto update for both Firefox and Flash. After restarting FF, I have not been able to drag and drop my tabs anymore. If I attempt to, the thumbnail of the tab flashes briefly before disappearing, and the arrow showing where the tab would
-
I recently got a new Retina MacBook Pro, and upgraded to CS6. But all my files are opening teeny tiny, at .05%. How can I get them to open at a reasonable size, like 16.7%? These are large comic art files, so I don't need them to open at full size.
-
Upgradation Of Active Directory 2003
Hi, Would like to upgrade AD 2003 to 2008. Please provide essential steps for the upgradations purpose. Regards Rajesh