JBuilder Question

Hi all,
I am back to doing some Java after a year's hiatus from Java.
Question about JBuilder:
I am trying to use the layout manager and when I layout using the designer than go back and declare these objects as static the designer complains. Any idea why?
It will render them still but looks like if I add new objects it will have trouble.

I am trying to use the layout manager and when I
layout using the designer than go back and declare
these objects as static the designer complains. Any
idea why?
what objects?
It will render them still but looks like if I add new
objects it will have trouble.if you change the user interface in ways it can't understand fully it will (try to) show a representation of the user interface but you won't be able to use the designers anymore for that screen.
This to prevent itself from inadvertently doing something that damages your own changes to the code.
Some other IDEs will just undo whatever you yourself did to the code instead, JBuilder is geared towards people who know what they're doing and works on the principle that what the programmer does always gets preserved even if it means JBuilder can no longer understand it.

Similar Messages

  • JBuilder question on how to add a new .java file

    I am new to Java and even newer to JBuilder. I am creating the GUI for our school project and my other members are creating the networking and database parts of our program seperatly. I am at the point were I need to import their .java files into my project I created in JBuilder.
    Can someone tell me the steps I need to take to get those files into my project so I can start using the classes from my group they made up?
    Thanks,
    Scott

    You can use show_alert statement and then make a check on button that is pressed from the alert.
    Here is an example of show_alert built_in.
    DECLARE
      my_alert number;
      ALERT_TXT     VARCHAR2(200) := 'Do you want to delete record?';
    BEGIN
         set_alert_property('your_alert',ALERT_MESSAGE_TEXT,ALERT_TXT);
           my_alert := show_alert('your_alert');
           If my_alert = Alert_Button1 Then
             /** I choose to delete record **/
            -- here you can put your statements
           else
           -- I pressed NO button
           -- here you can put your statements
           end if;
    END;Hope it helps you,
    Fabrizio
    If this answer is helpful or correct, please mark it. Thanks.

  • JBuilder Question -  Where do i put the code?

    I am building a jList using the designer in
    Jbuilder. In what event procedure do i put the
    code that assigns an array and so on?
    thanks for any help
    maggie evans

    Typically you'll code the initial population of UI components in the jbInit method. If you want to dynamically populate the list as a result of a selectable UI component being clicked then put the code in the action performed method for the 'clicked' component.

  • Which forum i select for access the hardware through ports

    please guide me in which forum i post the questions about javax.comm
    to use the ports to control the hardware
    thanks

    Pick any one you like. Doesn't matter much anyway, nowadays we even have to answer JBuilder questions here.

  • Ican'tmakeanyprogresstilligetjbuilderadvice

    please explain how to fire an event in jbuilder cause there are no instructions and i want to fire an event from a button to change the colour of another object.......

    * double posted
    * unreadable title
    * JBuilder question concerning GUI (Swing or AWT?) in JDBC
    * unclear question
    Thanks for this example of a bad topic ;-)
    Nethertheless let's continue there:
    http://forum.java.sun.com/thread.jsp?forum=48&thread=200515

  • A question about ImageIcon in JBuilder 9

    In my test code:
    public class Welcome extends JPanel
    public Welcome() {
    //this line has problem in JBuilder 9
    ImageIcon image = new ImageIcon("welcome.jpg");
    This sample code is ok while compiling on jdk 1.4.
    But I have to change the line mentioned to
    ImageIcon image = new ImageIcon(Welcome.class.getResource("welcome.jpg")); in JBuilder 9, otherwise it's not ok.
    I don't know why I need to do this.
    Is anyone could help me? Thx.

    Are you jaring your application and trying to run it? Or otherwise, is
    your JBuilder (configured) so that it runs every application after
    jaring the class files and resources.
    You need to load images from the Class.getResource("image.jpg") only if
    your app runs as a Jar file. Not only images, if you want to access any
    resource from the Jar, you need to do like this. Or else if you use the first way that is directly giving the name of the image( not name, it is path of the image file), that must be recognizable to application.

  • I am a new in jbuilder 4, a simple question, please help me.

    I want to combine the scroll bar with textarea. I mean that If the content in textarea is very large, I can scroll bar to see it.
    I write the code like this:
    JTextArea jTextArea1 = new JTextArea();
    JScrollBar jScrollBar1 = new JScrollBar(jTextArea1); But the error message is :"Frame1.java": Error #: 300 : constructor JScrollBar(javax.swing.JTextArea) not found in class javax.swing.JScrollBar at line 21, column 32
    The following is the full code:
    public class Frame1 extends JFrame {
      JPanel contentPane;
      BorderLayout borderLayout1 = new BorderLayout();
      JTabbedPane jTabbedPane1 = new JTabbedPane();
      JPanel jPanel1 = new JPanel();
      JPanel jPanel2 = new JPanel();
      JPanel jPanel3 = new JPanel();
      BorderLayout borderLayout2 = new BorderLayout();
      JTextArea jTextArea1 = new JTextArea();
      JScrollBar jScrollBar1 = new JScrollBar();
      JPanel jPanel4 = new JPanel();
      JButton jButton1 = new JButton();
      BorderLayout borderLayout3 = new BorderLayout();
      JTextArea jTextArea2 = new JTextArea();
      JScrollBar jScrollBar2 = new JScrollBar();
      JPanel jPanel5 = new JPanel();
      JButton jButton2 = new JButton();
      /**Construct the frame*/
      public Frame1() {
        enableEvents(AWTEvent.WINDOW_EVENT_MASK);
        try {
          jbInit();
        catch(Exception e) {
          e.printStackTrace();
      /**Component initialization*/
      private void jbInit() throws Exception  {
        //setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]")));
        contentPane = (JPanel) this.getContentPane();
        contentPane.setLayout(borderLayout1);
        this.setSize(new Dimension(513, 399));
        this.setTitle("File Integrity Check Tool");
        jPanel1.setLayout(borderLayout2);
        jButton1.setToolTipText("");
        jButton1.setText("Register Files");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
          public void actionPerformed(ActionEvent e) {
            jButton1_actionPerformed(e);
        jPanel2.setLayout(borderLayout3);
        jButton2.setText("Check Files");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
          public void actionPerformed(ActionEvent e) {
            jButton2_actionPerformed(e);
        jTextArea1.setEditable(false);
        jTextArea1.setMaximumSize(new Dimension(513, 399));
        jTextArea2.setEditable(false);
        contentPane.add(jTabbedPane1, BorderLayout.CENTER);
        jTabbedPane1.add(jPanel1, "Register Checkfile");
        jPanel1.add(jTextArea1, BorderLayout.CENTER);
        jPanel1.add(jScrollBar1, BorderLayout.EAST);
        jPanel1.add(jPanel4, BorderLayout.SOUTH);
        jPanel4.add(jButton1, null);
        jTabbedPane1.add(jPanel2, "Check Files");
        jPanel2.add(jTextArea2, BorderLayout.CENTER);
        jPanel2.add(jScrollBar2, BorderLayout.EAST);
        jPanel2.add(jPanel5, BorderLayout.SOUTH);
        jPanel5.add(jButton2, null);
        jTabbedPane1.add(jPanel3, "Help");
      /**Overridden so we can exit when window is closed*/
      protected void processWindowEvent(WindowEvent e) {
        super.processWindowEvent(e);
        if (e.getID() == WindowEvent.WINDOW_CLOSING) {
          System.exit(0);
      }

    yes, I done like this:
    package untitled1;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Frame1 extends JFrame {
      JPanel contentPane;
      BorderLayout borderLayout1 = new BorderLayout();
      JTabbedPane jTabbedPane1 = new JTabbedPane();
      JPanel jPanel1 = new JPanel();
      BorderLayout borderLayout2 = new BorderLayout();
      JTextArea jTextArea1 = new JTextArea();
      JScrollPane jScrollPane1 = new JScrollPane( jTextArea1);
      JPanel jPanel2 = new JPanel();
      JButton jButton1 = new JButton();
      /**Construct the frame*/
      public Frame1() {
        enableEvents(AWTEvent.WINDOW_EVENT_MASK);
        try {
          jbInit();
        catch(Exception e) {
          e.printStackTrace();
      /**Component initialization*/
      private void jbInit() throws Exception  {
        //setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]")));
        contentPane = (JPanel) this.getContentPane();
        contentPane.setLayout(borderLayout1);
        this.setSize(new Dimension(400, 300));
        this.setTitle("Frame Title");
        jPanel1.setLayout(borderLayout2);
        jTextArea1.setText("jTextArea1");
        jButton1.setText("jButton1");
        contentPane.add(jTabbedPane1, BorderLayout.CENTER);
        jTabbedPane1.add(jPanel1, "jPanel1");
        jPanel1.add(jTextArea1, BorderLayout.CENTER);
        jPanel1.add(jPanel2, BorderLayout.SOUTH);
        jPanel2.add(jButton1, null);
        jPanel1.add(jScrollPane1, BorderLayout.EAST);
      /**Overridden so we can exit when window is closed*/
      protected void processWindowEvent(WindowEvent e) {
        super.processWindowEvent(e);
        if (e.getID() == WindowEvent.WINDOW_CLOSING) {
          System.exit(0);
    }But it is still not show the scroll bar on the right of textarea.
    what is the problem.

  • How to upgrade jdk used in jbuilder 5.0?????

    Hi all
    i have jbuilder 5.0 Enterprise which use jdk1.3
    each time i change the jdk configuration and use jdk 6
    it gave me when i compile an error that the file version is incorrect
    and the design window doesnt parsing the components....so plz
    how would i solve this damm problem
    if i cant
    plz provide me with jbuilder 9 or 10x
    but not with jbuilder 2007 because it is soooo complex to me
    thnx all

    Please ask this question at another site, as these forums support Java language questions, not jBuilder (or other IDEe.)

  • Import JBuilder into Sun Java Studio Enterprise 8

    I have a few JBuilder projects that I would like to import into SJSE8.
    I have read all the guides for migrating projects from JBuilder but I cannot see how I actually get the Import Project module.
    SJSE8 is supposed to be built on NetBeans5.5 but when I use the Update Center I cannot see the Import JBuilder Project module. How can I find the module and install it? Perhaps I need to get the .nbm file, but finding this seems to be difficult.
    Please Help,
    Rob

    For questions on 'Java Studio Creator', you may want to post on the Creator forum at http://forum.java.sun.com/forum.jspa?forumID=881 .
    The following are possible options but they are not guaranteed to work:
    Have you tried connecting to the all the available update centers in Creator ide's autoupdate client and check if 'jbuilder importer' plugin is available from one of them?
    If not, you should be able to download the nbm separately from:
    http://www.netbeans.info/uc/show_uc_content.php?nbver=50&auver=1.15&uctype=stable
    You can then use 'Install manually downloaded nbm' option in the autoupdate wizard. Again, this may or may not work..
    Also: You should consider upgrading to NetBeans 6.0.
    NetBeans 6.0 is an all-in-one-ide that is the recommended migration path for both Creator and Studio users and is the latest version available:
    http://www.netbeans.org/
    Documentation: http://www.netbeans.org/kb/index.html
    Community: http://www.netbeans.org/community/index.html
    Register to Join the NetBeans Community
    Once registered you have the opportunity to submit bugs and feature requests in IssueZilla, submit news for the NetBeans Community, and contribute code or even create a project of your own. Welcome to the team!
    You can also joint the mailing lists (http://www.netbeans.org/community/lists/top.html), especially [email protected] , to discuss issues and get community help on NetBeans related questions

  • Deployment and debugging from JBuilder

    Hi,
    i build a JATO application that deployed as a war file and run
    perfectly on an external Tomcat.
    But running this app on the integrated Tomcat of the JBuilder tool
    results in the following error :
    Application Error - javax.servlet.ServletException: Invalid reqest -
    request handler "Login" not found
    On that way, debugging the application is not possible.
    Any idea what's wrong ?
    I've heard there is a deployment tool document ? Where is it ?
    thanks for your help

    Hi--
    None of our team has experience running JATO apps in JBuilder. The main
    thing to check when running in an IDE is that the web.xml is properly
    registered. Because you've received a JATO error, I assume it is in your
    case. Therefore, it must be something else.
    The error you sent means that the lookup for the LoginViewBean class failed.
    This is probably a silly question, but are all of your classes compiled and
    under the /WEB-INF/classes directory? Any other reason your application
    classes might not be found?
    Todd
    Todd Fast
    Senior Engineer
    Sun Microsystems, Inc.
    todd.fast@s...
    ----- Original Message -----
    From: <donnetmonay@y...>
    Sent: Tuesday, November 20, 2001 1:26 AM
    Subject: [iPlanet-JATO] deployment and debugging from JBuilder
    Hi,
    i build a JATO application that deployed as a war file and run
    perfectly on an external Tomcat.
    But running this app on the integrated Tomcat of the JBuilder tool
    results in the following error :
    Application Error - javax.servlet.ServletException: Invalid reqest -
    request handler "Login" not found
    On that way, debugging the application is not possible.
    Any idea what's wrong ?
    I've heard there is a deployment tool document ? Where is it ?
    thanks for your help
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

  • The JBuilder package mystery

    Dear all,
    I've come across an interesting JBuilder problem that is slightly different to the other ones I've seen on this forum when i searched
    Background:
    I've been making an address book program for my computer to help me learn java and up to now i've just compiled it at the DOS prompt. To help learn a bit more about java, I created a package (called JLgeneric) to store some of the classes I am using in this project that I might use on another program (for instance one class that does some interesting things with strings). With a little messing around with CLASSPATH in Windows XP, and learning about how to import packages and the like i finally got it working. Please note, I put my JLgeneric packages (i.e. directory) in a completely different place on my hard disk to where I put the source files.
    Now I've decided to start using JBuilder rather than javac as I think it will be more useful in the future. I can already use it to compile simple java programs - it is fine with these. But, using it to compile my addressbook program it comes up with several errors (66!!). The source of these errors is (I think) that it can't find my JLgeneric package, even though the javac (the java compiler at the command prompt) finds it ok.
    The Problem
    So my question is this, if I have my own package "JLgeneric" on a completely different place in my hard disk to the source files, how do I tell JBuilder where to find it. I tried adding its path via PROJECT|PROPERTIES|LIBRARIES but when I tried to compile the project it still didn't manage to find JLgeneric.
    My packages are found using javac so why doesn't it work with JBuilder?!
    Any help is much appreciated
    Thanks
    James

    My packages are found using javac so why doesn't it
    work with JBuilder?!Because the classpath you are using with javac is different than the one JBuilder is using.
    With javac, you are either creating a CLASSPATH environment variable (which by the way isn't a good way to go if you are) or are passing -classpath [your classpath here] command-line arguments to it.
    JBuilder doesn't use the CLASSPATH environment variable, and you don't pass command-line arguments to it, so it uses project settings to determine the classpath to use. It sounds like you're on the right track (mentioning using PROJECT|PROPERTIES|LIBRARIES), but apparently just haven't done it correctly. Keep playing with it - this is not really a Java question, per se.

  • Questions about Java Servlets and JSP

    Hi,
    I'm a confident Java Programmer (and really enjoy using this language) but am very new to Java servlets and Java Server Pages.
    I have previously worked with Perl on my web projects (simple 'league' style voting pages). I read in my 'Core Java' book that I should no longer use perl or even cgi.
    I need to know more about Java servlets and Java Server Pages so I can make the switch to a 'real' programming language.
    I have a few questions:
    How should I start to learn JS and JSP?
    How applicable will the java knowlegdge I have already be?
    Are JSP common on the world wide web?
    What tools do I need to start? (I currently develop in JBuilder and have Java 1.4.1 Standard Edition)
    Is it likey my web host (and others) will support JSP?
    Thank-you very much for helping a novice get started,
    Regards,
    Paul

    Hi, Steve ...has to be frustrating! But do not despair.
    Let's suppose the servlet it's named MyServlet on package org.servlets
    WEB-INF should look:
    WEB-INF
    classes
    org
    servlets
    MyServlet.class
    web.xml
    web.xml file should have this two declarations:
    <web-app>
      <servlet>
        <servlet-name>MyServlet</servlet-name>
        <servlet-class>org.servlets.MyServlet</servlet-class>
      </servlet>
      <!-- other servlets -->
      <servlet-mapping>
        <servlet-name>MyServlet</servlet-name>
        <url-pattern>/MyServlet</url-pattern>
      </servlet-mapping>
      <!-- other servlets mappings -->
    </web-app>Now, once the container starts (Tomcat?), you should be able to see that servlet in:
    http://localhost:8080/[my-context/]MyServletAnd what my-context is? The web application context. This string should be empty if your're deploying to the root context, otherwise should the context name. In Tomcat, deploying to root context defaults to using webapps/ROOT.
    Sorry for my English, but I felt the need to answer your request. I hope it helps despite my writing.

  • Oracle 10G/11G with JBuilder

    Hi Gurus,
    I am new bie in the Java development world. I am looking for purchasing a laptop on which I can install Oracle (either 10G or 11G does not matter) and JBuilder as the project on which I am going to work on uses JBuilder tool.
    I have two questions
    1) Is Windows 8 comptaible with Oracle 10G or 11G ?
    2) Also can I install JBuilder on a Windows 8 Laptop ?
    Regards
    Fm

    Thanks Timo for getting back to me so promptly. I do understand that this forum is not for JBuilder as Oracle uses JDeveloper to do the same stuff.
    But can u specifically answer my question
    1) Is Windows 8 compatible with Oracle 10G/ 11G ?
    2) Assuming if its not yet compatible with Oracle 11G. Can we safely install JBuilder on Windows 7 and use it with Oracle 10G.
    Please advise. I value advise from experts like you.
    Cheers !

  • Question on use of JMS

    I am new to JMS and I have a question on applicability of JMS.
    I have gone through different resources which explains the applicability of JMS. I was wondering if I can use JMS for this purpose:
    When the user (end-user) initiates a business transaction (a business component in a system which needs a long while to process), it (the process) should run in the background while the user should be able to perform other tasks on the system.
    Other way of saying is to incorporate "asynchronous" behavior to that particular component.
    An example of such context is: In a text editor (say JBuilder), user can activate the search, and the user can do other things (say open/close/edit a file) simultaneously while the search process runs background until its done.
    Can I know if its wise using JMS ONLY for this purpose. I guess other option for this purpose is to use Multithreading.
    Any suggestions is appreciated.
    Thanx.
    Pramodh.

    You can use it in the context of mutithreading but it means JMS is not meant for Multithreading. Its basically meant for object communication.
    It will be useful when you are writing some event based applications like Chat Server which needs a publish kind of event mechanism to send messages between the server to the clients who got connected with the server.
    Moreover JMS gives Loosely-coupled kind of mechanism when compared with RMI which is tightly-coupled. In JMS there is no need for the destination object to be available online while sending a message from the client to the server. But in RMI it is necessary. So we can use JMS in place of RMI where we need to have loosely-coupled mechanism.
    I hope this will give you a good idea about JMS.
    Regards
    Harish Kumar

  • Question about standalone apps

    Hi enerybody, i am interested in developing standalone apps in the Java lang and would like toknow which IDE should i use SUN ONE STUDIO 5 SE, JAVABEANS or ECLIPSE 2.1
    I know that this has been asked a lot but please i really need to know because i am at a loss.
    Thanks in advance :)

    i think both questions ("which IDE to use?" and "which DB to use?") depend on your requirements!
    IDE:
    - are you only interested in a better editor which colors up your source code?
    - are you intereseted in a designer to create GUI's?
    - how much would you pay for a IDE?
    DB:
    - would you pay money for your DB?
    - how many sets of tables and data should the database manage?
    - how important is the speed of the DBMS?
    i myself am working with JBuilder 8 at that moment. the personal edition is free for download...
    as db i am using mySQL:
    a) i don't need an expensive high performance ... top DB
    b) my Homepage's hoster uses it so testing is easier
    c) ...
    what do you require?

Maybe you are looking for

  • What is the return policy for a certified pre-owned iPhone 4?

    I purchased this phone on 3/17/14 online.  The lock button is not working.  It seems to be jammed and I can't turn the phone off.  Has anyone else had this issue and if so please help.  Thanks!

  • HT1725 download error #8328/check connectivity/iTunes store

    Download error #8328, connectivity. Am on ethernet and wifi. Free and paid apps will not load due to this error message.

  • Why servers in DMZ have 2 different IP addresses?

    I notice that all of my company's unix servers in the DMZ have 2 IP addresses. Could you expalin why? Thanks! Points will be given.

  • RMA for Configurations

    We are using PTO/ATO Models and want to ensure we only issue a credit note if the complete model was returned. Somehow Oracle interfaces each component/option directly to receivables interface. Do you know a way to ensure complete credit notes ? (oth

  • XML and Flash - Yikes!

    HELP! I think I might be in trouble unless someone brilliant can help. I'm working with a flash template that loads external images and text using an xml file. Everything works well the only problem is I've promised a client that as well as a "title"