Organize Component in a Form

Hello!
I wasn't able to put the JTable in the correct position that is below the other components. Could anyone help me?
public class teste extends JFrame
     private javax.swing.JButton btnBotaoOK = new JButton();
     private javax.swing.JButton btnAnterior = new JButton();
     private javax.swing.JButton btnProximo = new JButton();
     private javax.swing.JLabel lblAtivo = new JLabel();
     private javax.swing.JLabel lblCompra = new JLabel();
     private javax.swing.JLabel lblVenda = new JLabel();
     private javax.swing.JPanel pnlSuperior = new JPanel(new BorderLayout());
     private javax.swing.JPanel pnlInferior = new JPanel();
     private javax.swing.JTextField txtCodAtivo = new JTextField();
     public teste()
          initComponents();
     private void initComponents() {
          lblAtivo.setHorizontalAlignment(SwingConstants.LEADING);
          lblAtivo.setHorizontalTextPosition(SwingConstants.CENTER);
          lblAtivo.setText("Ativo");
          lblAtivo.setBounds(new Rectangle(4, 4, 79, 16));
          txtCodAtivo.setFont(new java.awt.Font("Dialog", 1, 12));
          txtCodAtivo.setHorizontalAlignment(SwingConstants.CENTER);
          txtCodAtivo.setBounds(new Rectangle(4, 21, 81, 18));
          txtCodAtivo.setForeground(objContexto.Funcoes.toRGBColor(0, 0, 160));
          txtCodAtivo.setRequestFocusEnabled(true);
          btnBotaoOK.setBounds(new Rectangle(90, 4, 51, 35));
          btnBotaoOK.setRequestFocusEnabled(true);
          btnBotaoOK.setRolloverEnabled(false);
          btnBotaoOK.setText("OK");
          lblCompra.setHorizontalAlignment(SwingConstants.LEADING);
          lblCompra.setHorizontalTextPosition(SwingConstants.CENTER);
          lblCompra.setText("Compra");
          lblCompra.setForeground(Color.RED);
          lblCompra.setBounds(new Rectangle(160, 25, 79, 16));
          lblVenda.setHorizontalAlignment(SwingConstants.LEADING);
          lblVenda.setHorizontalTextPosition(SwingConstants.CENTER);
          lblVenda.setText("Venda");
          lblVenda.setForeground(Color.BLUE);
          lblVenda.setBounds(new Rectangle(230, 25, 79, 16));
          btnAnterior.setBounds(new Rectangle(290, 4, 51, 35));
          btnAnterior.setRequestFocusEnabled(true);
          btnAnterior.setRolloverEnabled(false);
          btnAnterior.setText("<<");
          btnProximo.setBounds(new Rectangle(345, 4, 51, 35));
          btnProximo.setRequestFocusEnabled(true);
          btnProximo.setRolloverEnabled(false);
          btnProximo.setText(">>");
          btnProximo.setFont(new Font("Dialog", Font.BOLD, 12));
          cpJanela.add(lblAtivo, null);
          cpJanela.add(txtCodAtivo, null);
          cpJanela.add(btnBotaoOK, null);
          cpJanela.add(lblCompra, null);
          cpJanela.add(lblVenda, null);
          cpJanela.add(btnAnterior, null);
          cpJanela.add(btnProximo, null);
          JTable objGrid = new JTable();
          JPanel objPanel = new JPanel();
          objPanel.add(objGrid, null);
          add(objPanel, null);
          String strColunas[] = {"Ps" , "Cor.", "Qtd.", "Pre�o", "Pre�o", "Qtd.", "Cor.", "Ps"};
          Object dados[][] = new Object[30][strColunas.length];
          for(int idLn=0; idLn<dados.length; idLn++)
               for(int idCl=0; idCl<dados[0].length; idCl++)
                    dados[idLn][idCl] = String.valueOf(idLn) + " , " + String.valueOf(idCl);
Thanks,
Pati :o)

try using a JSplitPane.
its an easy way to separate a table from the controls
JSplitPane sp = new JSplitPane(JSplitPane.Vertical_Split);
sp.setBottomComponent(table)
sp.setTopComponet(panelwithotherstuff)
sp.setDividerLocation(300);just an idea.

Similar Messages

  • How do you create hierarchical folders in Forms Central to organize and manage multiple forms?

    How do you create hierarchical folders in Forms Central to organize and manage multiple forms?

    Hi,
    We do not support this feature right now.  Someone else has posted this to our ideas forum, here - http://forums.adobe.com/ideas/1587.  I suggest you vote for it, because we look at the popular ideas to help guide us on what new features work on.
    Thanks,
    Todd

  • Rerendering a component in different form

    I have a form and it contains one a4j command button. On click of this button, a rich modal panel gets opened. This modal panel contains a table and an a4j command button both enclosed in a form tag. So now I have 2 forms - one in the base page and another in the modal panel. When a4j button on modal panel is clicked, I am rerendering a component on the base page which belong to different form. But it doesnt get rerendered. Can we trigger rerendering of a component in one form by a component in another form? Alternative solutions also welcome. Thanks ...

    You cannot nest forms. You can have multiple of them parallel, but certainly not nested. This is a limitation by HTML specification.

  • Context Binding is not possible in webdynpro component for Interactive form

    Hi,
    Click
    [Enhancement of webdynpro component|http://swethacblog.blogspot.com/2011/11/context-binding-for-interactive-form.html#!/2011/11/context-binding-for-interactive-form.html] to view the procedure that I have followed to create interactive form in enhanced view.
    Can you please tell me that why i am getting the context menu nodes in invisible mode while binding it to from interface.
    Thank you,
    Swetha.C

    Hi Abhil,
    If your layout type is 'ZCI Layout' then you have insert the webdynpro script in the layout. After selecting the ZCI Layout click on enter and then go to layout tab, in this go to Utilities menu->select Insert WebDynpro Script.
    If you do this then in the Hierarchy tab of adobe form you can see the (Variable) ContainerFoundation_JS, it means that you have inserted WebDypro Script in the form.
    Finally activate the form and run the application.
    Thanks,
    Jhansi Miryala

  • Restrict list of Organizations on Create User form

    Running OIM 11.1.1.5.0.
    We have a couple of companies using our OIM for delegated administration. In the Create User form, if the user searches for an organization they see a list of all of our organizations not just the ones that they can place a user in.
    If they place a user in an organization that is not in their auth policy they receive an error:
    "You are either not authorized to create user in XXX organization or not authorized to create user in XXX organization without specifying a value for manager."
    Is there any way to restrict the list of organizations in the search to the list in their auth policy?

    I have have this:
    Company A
    -- Department A1 (although these are actually set as Organization type Company in OIM)
    -- Department A2
    Company B
    -- Department B1
    User Management Auth Policy for AdminA:
    -- Data Constraint - Users who are members of Department A1, A2
    But when AdminA uses Create User he gets a list of all Company and Department names in the Organization search popup.
    Do I take it from your reply that this is supposed to work and it's something that I have setup incorrectly then?
    Edited by: Ewan on May 4, 2012 7:37 AM

  • Show organization in master item form

    Hi all,
    I have created new organization and want to assign it items in master item from (inventory), but after creating new organization, I did not find this organization here , how can I find please let me know.
    Thanks

    And check that your responsiblity has access to that new organization in case you use "Organization Access" to restrict access to orgs for respos. Check under Inventory > Setup > Organizations > Organization Access.
    regards,
    David.

  • Running VB6 SP5, CW 3.0(536), NI-DAQ V6.7, PCI-6023E. Placed a CWCounter component on my form, setup parameters and c

    alled CWCounter1.Configure which returned a success. Called CWCounter1.Start and got the following error: Run-time error '10123': Start DAQ operation Invalid paramID used. There is no param specified for this method in the doc. Any suggestions? Thanx.

    alled CWCounter1.Configure which returned a success. Called CWCounter1.Start and got the following error: Run-time error '10123': Start DAQ operation Invalid paramID used. There is no param specified for this method in the doc. Any suggestions? Thanx.NI-DAQ 10123 is the generic error for an invalid parameter in counter configuration. Our counters can be used for many things (pulse and period measurement, edge seperation, event counting, etc.) and require different configuration settings. Without seeing the properties you chose and without knowing your specific application, I would recommend starting your development process with our wonderful counter examples that ship with CW. Pick the closest sample to your application and modify as needed. They are usually available in the MeasurementStudio\VB\Samples\DAQ\Counter directory. They should run with the default settings.
    good luck
    ben schulte
    national instruments

  • Problem showing the crystal report viewer in form after added the component on it

    Greetings
    I have a problem running a program. I created a form which I added the component Crystal Report Viewer perfecty but during program execution when I call that form my VS 2012 Ultimate show the following error:
    Translated:
    Failed to create the form. See Exception.InnerException for details. Error: An exception occurred in the type initializer for 'CrystalDecisions.Shared.SharedUtils'.
    Note: If I remove the component from the form. the applications runs fine when calling the form without the component CrystalReportViewer
    It is something related to my VS? o just that the actual version 13.0.9 is not yet compatible?

    Report.Show?
    How about you try:
    CrystalReportViewer1.ReportSource = <path to your report>
    Or:
    Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument
    crReportDocument.Load(<path to your report>)
    CrystalReportViewer1.ReportSource = crReportDocument
    Or, if the report is added to the project:
    crReportDocument = New test
    CrystalReportViewer1.ReportSource = crReportDocument
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter
    Message was edited by: Ludek Uher

  • Folders for Adobe Forms - is there a way to organize my forms?

    I am looking for a way to organize my online Adobe Forms.  I use the forms for school on an almost daily basis.  I would like to put payroll forms together, summer school registration, evaluations, etc. - each in their own separate folder.  Help!

    Hi,
    This isn't something we currently support. You can vote for the feature here:
    http://forums.adobe.com/ideas/1587
    We use the Ideas section to help prioritize our work.
    Regards,
    Brian

  • About Forms JAVA UI Component AppletSecurityException

    Hi,
    I have been researching how to access a custom OCX control from Web Forms 6i application, and I came up with a third-party JAVA to COM bridging solution, J-Integra from Intrinsyc.
    With J-Integra I was able to build a PJC compatible JAVA component which invokes a local OCX control and was able to access the JAVA component from regular JAVA application but when I tried to invoke the component with Web Forms application I got AppletSecurityException runtime error message. I have signed the component's jar file with javakey, without success, to remove the AppletSecurityException message. How can I remove the following runtime error message from my PJC JAVA component?
    sun.applet.AppletSecurityException: checklink
         at java.lang.Throwable.<init>(Compiled Code)
         at java.lang.Exception.<init>(Compiled Code)
         at java.lang.RuntimeException.<init>(RuntimeException.java:50)
         at java.lang.SecurityException.<init>(SecurityException.java:42)
         at sun.applet.AppletSecurityException.<init>(AppletSecurityException.java:29)
         at sun.applet.AppletSecurityException.<init>(AppletSecurityException.java:34)
         at sun.applet.AppletSecurity.checkLink(AppletSecurity.java:256)
         at java.lang.Runtime.loadLibrary(Compiled Code)
         at java.lang.System.loadLibrary(System.java:561)
         at com.linar.jintegra.NativeObjRef.q(Unknown Source)
         at com.linar.jintegra.Dispatch.a(Unknown Source)
         at com.linar.jintegra.Ocx.<clinit>(Unknown Source)
         at rapidview.JRapidViewx.<init>(JRapidViewx.java:25)
         at oracle.forms.handler.UICommon.instantiate(Compiled Code)
         at oracle.forms.handler.UICommon.onCreate(Compiled Code)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Compiled Code)
         at oracle.forms.engine.Runform.processMessage(Compiled Code)
         at oracle.forms.engine.Runform.processSet(Compiled Code)
         at oracle.forms.engine.Runform.onMessageReal(Compiled Code)
         at oracle.forms.engine.Runform.onMessage(Compiled Code)
         at oracle.forms.engine.Runform.processEventEnd(Compiled Code)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Compiled Code)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Compiled Code)
         at java.awt.Component.dispatchEventImpl(Compiled Code)
         at java.awt.Container.dispatchEventImpl(Compiled Code)
         at java.awt.Component.dispatchEvent(Compiled Code)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code)
         at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code)
         at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
         at java.awt.Container.dispatchEventImpl(Compiled Code)
         at java.awt.Window.dispatchEventImpl(Compiled Code)
         at java.awt.Component.dispatchEvent(Compiled Code)
         at java.awt.EventDispatchThread.run(Compiled Code)
    Thanks!

    I am also having the same problem.
    I have signed using the PJC.x509 certificate and it is still throwing the
    link error. I am not sure what I need to. I had imported the certificate and
    also ensured that identity.obj is copied to proper directory.
    After following the complete instruction from PJC document,i am still having problems.Either we have incorrect document or problem and resolution section needs
    to be updated.
    FYI, I am running windows2000 and my forms server is 6i with patch5 .

  • Integrate an ADF rich client component in form

    Hi all. I'm on devsuite10g. I have got a question: how I can integrate/insert an ADF rich client component in my form without using Jdeveloper??
    Is there a way to do it??
    Thanks all for the collaboration,
    Fabrizio

    Hi,
    you can use any other Java IDE for this and just work with the properly configured tag libary and the required settings in web.xml. However, since Developer Suite 10g is 10.1.2, you can't use the components unless your form runs on a platform that supports JavaEE 1.5
    Frank

  • Calling a module component from a diff form

    Hi guys,
    Does any one know how to:
    call a module component of a form from a nother from using call form procedure or any diff method.
    Thanks

    Hello,
    Open the on-line help of the Forms Builder : Ctrl+H
    click the Index tab, enter CALL_FORM then click : Calling Modal Forms with CALL_FORM then the OPEN button.
    You can find the example you search.
    Francois

  • Organization Default value in Requisition Form

    The Organization Value is not Defaulting in Requisition from(R12) for a new responsibility I created for my OU.. (Purchasing --> Requisitions --> Requisition). Can anyone help on from where its picking the value?. The Location is coming Default. but when I manually enter the Organization, its prompting to enter Location again.
    Please help on where to set the values.
    Thanks,
    Ranjith

    The location and the Organization in the Requisition form, will get defaulted from the following location:
    1)Location:
    Login using the HR responsibility
    Query the Employee ( requester ) in the Enter and Maintain Form
    Press the Assignment Button
    Value in the Location field.
    2)Organization:
    Login using Purchasing responsibility
    Navigate to Setup -> Organizations -> Locations
    Query for the Location Assigned to the Employee in Step 1
    Navigate to Other Details Tab
    Value specified in the Inventory Organization Field.
    Please let us know if you need any further info.
    Regards,
    Paarthy

  • Fusion Reports & Forms Clustering - Fail recognize Oracle Report Component

    Hello All,
    Forgive me if I have the wrong forum.
    I installed weblogic 10.3.6.0 + Fusion Reports Reports & Forms (11.1.1.1.6) on windows platform.
    Yet when I try to extend the cluster when creating an instance I do not see the Oracle Report component, only Oracle Forms.
    Did I miss a step? I used the base Fusion installation:
    MH_HOME = D:\Oracle\Middleware
    INSTANCE_HOME=D:\Oracle\Middleware\asinst_1
    ORACLE_HOME=D:\Oracle\Middleware\as_1
    Servers created
    =============
    AdminServer
    WLS_DISCO
    WLS_FORMS
    WLS_REPORTS
    Thanks in advance for any assistance .
    Sincerely
    Jan S.

    Hi Jans,
    This is pure specific to Weblogic forum.
    where as you have FMW query.
    Please post your query in.
    Applications Integration using Oracle Fusion Middleware
    that will help you and get your query.
    Regards,
    Kal

  • Organism: extensible outliner+personal organizer (needs beta testers)

    Organism is basically a simple outliner structured in a very modular way: the core is written in Python 2 (but should be easily adaptable to Python 3) and provides the backend for interacting with sqlite databases, where the data is stored.
    The core also provides an API that can be used by 3 kinds of addons: extensions, interfaces and plugins.
    Extensions are meant to extend core functionalities, and provide their own API: they can directly query the databases.
    Interfaces are the addons that let the user directly interact with core's and extensions' API: currently only a wxPython interface is implemented. Interfaces cannot directly query the databases, they must make calls to the core or the extensions.
    Plugins are for interfaces what extensions are for the core: they extend interface functionalities and cannot directly query the databases.
    The various addons are currently distributed with 3 components (installation packages, but I decided not to use the word "package" since it conflicts with Python packages):
    * the "main" component provides the core, a copy/paste extension, the wxPython interface and some basic plugins.
    * the "organizer" component provides extensions and plugins that let the user define time scheduling rules for each database entry; alarms are raised when events take place, and they can be snoozed or dismissed, like the average calendar application.
    * the "development" component provides some tools for developers and beta testers (currently only "print database tables" and "populate database")
    Organism and its addons are released under GPLv3.
    AUR PACKAGES
    * organism: https://aur.archlinux.org/packages.php?ID=54620
    * organism-organizer: https://aur.archlinux.org/packages.php?ID=54622
    * organism-development: https://aur.archlinux.org/packages.php?ID=54621
    SCREENSHOTS
    * http://www.dariogiovannetti.net/files/organism01.png
    * http://www.dariogiovannetti.net/files/organism02.png
    CURRENT KNOWN LIMITATIONS
    * At the current state, plugins can add their own items to the interface's main menu, but by default they just append them at the bottom of the main entries, so the user needs to customize them in Organism's configuration file, which is located in ~/.config/organism/organism.conf. The location of the configuration file can be changed with the --config flag, all the available options are shown with the --help flag.
    * Once you create a database, the current addon configuration is stored in it, so you won't be able to open it with a different combination of addons: this is done to prevent data corruption, since an extension may add some particular data that needs updating, and if the database is opened without that extension it may get corrupted. Of course The next release of Organism will give the ability to "update" the databases to support the new versions of the addons.
    * At the moment only 3 schedule rules are implemented, but they are fairly easy to write and can be requested specifically.
    * This post is currently by far the best piece of documentation about Organism (except the source itself), I'll try to catch up on that too ^^
    * The next goal is releasing a stable 1.0.0 version, which means that only the most essential features are implemented, there's much room for improvement!
    DEPENDENCIES
    Beside wxpython, needed until the current interface is the only one available, Organism depends on 4 external Python modules I wrote during its development:
    * python2-plural: a little module that returns the needed form of a string depending on one or more input variables.
    * python2-loggingext: an extension to the logging module that lets the logger use different formatters for different log message levels.
    * python2-texthistory: a simple undo/redo engine for plain text and wx.TextCtrl.
    * python2-configfile: a class useful for dynamically parsing and writing configuration files, with support for subsections and more.
    python2-texthistory and python2-configfile may even be tested separately, if somebody is interested in using them for other projects.
    BETA TESTING
    Organism is in pre-beta, which means that I'm still accepting minor feature requests before going beta and starting the real testing campaign: that's why I'm looking for people interested in the project who want to help testing it.
    Beta testers should concentrate in particular in these fields:
    * defects in reading/writing the configuration file
    * defects in the database's undo/redo engine
    * defects in item text editor's undo/redo engine
    * defects in the organizer's management of timed item occurrences
    Of course bugs can happen everywhere, they can be reported at https://github.com/kynikos/organism/issues and https://github.com/kynikos/organism-organizer/issues
    Beta testers should use organism either by setting the logging level to "33" in the configuration file or by launching it with "--loglevel 33".
    ARTISTIC CONTRIBUTIONS
    I'm also looking for somebody intersted in an artistic collaboration for creating an original icon, since currently Organism is using GTK theme icons only.
    Thanks for reading
    Last edited by kynikos (2013-01-25 15:02:30)

Maybe you are looking for