ADF/Swing probles with nested panels layout.

When panel is placed in other panel, changing of nested panel layout by changing panel properties, results in adding in jbInit() metod code for setting choosen layout at the end of jbInit and not (as in top panel) at the begining of jbInit(). Many times (for instance when layout is BorderLayout) because of this nested panel is displayd empty. It is necessary of course to manually move lines setting layout before lines which adds components to nested panel. Thou it is possible to do it manually it would be nice not to have remember about it.

Remi,
how do I reproduce this? Can you give me a step-by-step instruction? Its not clear from your posting which JDeveloper release you are using (though I assume JDeveloper 10.1.3), nor if the panels are created in external Java file or within the parent panel.
Frank

Similar Messages

  • How to print the swing frame with muliple panel into 2 pages

    Hi all,
    I want your help, I have one problem in printing swing component. I can print the swing component from the screen.
    my problem is in my page have textboxes, and jtable. jtable display data from the database, i want to proceed the jtable to next page until the last row printed and visible . after that i want to print the text component and other component can anybody help me please.

    hello everyone i'm new to this forum..how are you all...
    Jack Brosnan
    [mobile phone|http://www.mobilephonesforsale.net.au/apple-iphone-f-2.html]

  • ADF Swing with POJO Business Service - How To?

    Does anyone have or know of any sample code demonstrating an ADF Swing Application
    with a Master-Detail on a Business Service implemented through POJOs (not Toplink, but
    generic JavaBeans)? Please note that I am not looking for an ADF BC example!
    I need to connect to a legacy backend which does not provide a JCA
    conforming interface, so using Toplink is out of the question. I will use
    vendor-specific technology to retrieve data and put these data into
    simple JavaBeans to represent my business layer. On top of this (i. e.
    in a 2-tier architecture) I would like to implement a Swing client using
    ADF data controls and ADF data bindings.
    Thanks for your help,
    Sebastian Millies

    Hi,
    thanks for the (partial) answer. Which blog would that be, by the way?
    An additional thought: Chapter 31 of the "Developer’s Guide For Forms/4GL Developers"
    10g Release 3 (10.1.3.0), B25947-01 mentions data control adapters as an alternative to
    Java Beans to represent the data source. Why is it alternative?
    It seems that a data control adapter provides a way to specify available ui controls,
    access data source meta data and invoke operations. Couldn't this also be used in the
    scenario that I described? Would it be possible to provide the metadata to the
    adapter in the form of a BeanInfo class, or an xsd-file generated from a JavaBean?
    Perhaps I'm totally off-track here ...
    -- Sebastian

  • Adf swing form login problem (Frank, look at this please)

    Hi All. I'm using JDeveloper 10.1.3
    Can anybody please give me a clue on how to create a simple stand alone adf swing form with a login dialog and the oracle jaas authentication?
    For me this kind af appllications works well only in design time :(. When i try to launch my generated .jar application the login dialog does appear but the authentication
    doesn't work "incorrect username or password".
    So i think i followed all the instructions from jDeveloper online help concerned with generating a login dialog... but my application still doesn't work properly after deployment.
    Please somebody look at what i've done and tell what is wrong.
    1. I created an adf swing form with a login dialog.
    2. I set the jbo.security.enforce property for my application module to Must.
    3. I added to my application a dialog for adding, removing and modifying application users via oracle.security.jazn api.
    4 I tested my appllication in Jdeveloper. It works great! I even added a number of application specific default users via my application.
    5. I assured myself that the oc4j security library has been added into the adf/swing project as well as into the deployment profile.
    6. I deployed my apllication to a .jar file.
    7. I created "config" folder inside the directory where the.jar file has been dropped. I copied there the following files: jazn.xml and system-jazn-data.xml (the last one file includes all my previously created principals) from /jdev_home/j2ee/home/config.
    8. Now when i start the application the login dialog appears as i've mentioned but authentication doesn't work.
    I found only one similar topic over the whole forum:
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=665430
    but what i've done seems to meet all Frank's advices.....
    Oracle staff please dont ignore my post.
    Thanks in advance.
    Edited by: Timin on Jun 22, 2009 11:58 PM

    Hi, rob nice to learn that i'm not the only one stumbled over this issue.
    Hope that this question will be finally answered...
    ...just a few additional comments.
    1. It appears that the position of the jazn.xml and jazn-data.xml files pointed in the documentation (config subfolder of the root .jar's folder) is right for if i rename or delete the jazn.xml it runs into the error: jazn configuration file not found, but nevertheless it works strange, it looks like it doesn't use the mentioned files at all....given the fact the i've already spent a number of days experimenting and looking for a solution i learned that after a first startup the files mentioned above (jazn.xml and jazn-data.xml) are modified in some way that prevents using them on another oc4j server instance (if i have i.e. another jdeveloper instance, i cant run and go through authentication in my application by simply coping the old jazn.xml and system-jazn-data.xml files into the /jdev_home/j2ee/home/config
    folder...instead i need to copy a pure "initial" jazn.xml file from the initial jdeveloper archive) ... something like the thing mentioned here:
    http://radio.weblogs.com/0118231/stories/2007/05/08/jdeveloperadf11gTechnicalPreviewTipsAndTricks.html
    also i noticed that if there is no system-jazn-data.xml file in the config folder it is created automatically after a first startup...so when i tried to delete the system-jazn-data.xml file from my deployed application's folder it would't create a new one though it saw the jazn.xml file (since no "jazn configuration file not found" error had ever appeared)...i also tried to place "pure" copies of jazn configuration files in my config subfolder but of course it would give no effect.
    2. i also changed the login.module.provider as well as the auth.policy.provider properties in the java.security file as documentation sais - no effect.
    So it would be great if Frank gave us a direct link to the white paper he was working on (and i hope had finished :) few years ago....or even better gave me the simpliest example of a finished adf swing application with authentication implemented.
    [email protected]
    ps. we know it's really really time consuming answering all questions but considering the lack of documentation on adf swing technology i hope we can rely on your help here.
    thanks.

  • Problem with "find" mode in adf/swing application

    Hi all,
    I'm working on ADF Swing application which uses MS SQL Server 2005 (JDeveloper 10g 10.1.3)
    I think that my issue might be well-known…sorry if it has been already discussed somewhere else…
    I have a problem with the “find” mode for a detail panel in a master-detail form…(To make it clear the “find” mode is switched on when clicking on the special button on a navigation panel).
    So this mode works well in a master panel, but it demonstrates strange behavior on a detail panel, i.e. it takes me two attempts to find the necessary child object and it doesn’t switch back in a simple way from this mode to the normal mode….say if we are in the department 10 (Dept is a master form) we can’t simply find KING employee (Emp is a detail form)…is there any workaround for this?
    Thanks in advance. Alex.

    Hi Frank, please look this issue

  • ADF Swing panel Issue

    Hi,
    I have requirement where i need to use 2 Panels in a form. I have used JPanel in ADF Swing like what we used Panel Box in ADF. When I am running the application, The data in the first panel is coming up where the second panel data is not showing. I am using J dev 11.1.1.3.
    Can you please help me in this regard.
    Regards,
    Kalyan.
    Edited by: Kalyan on Oct 7, 2010 5:33 AM

    As I understand you have 2 JPanels implemented as 2 separate Java classes and you invoke <tt>panel.setBindingContext(bctx)</tt> on each of them. This method binds the corresponding panel to its PageDef. If you use only one common PageDef instance then one of your panels will remain unbound. In order to resolve this problem you have to either combine your panels in a single JPanel or to provide a separate PageDef instance for each of them. You should either define a separate PageDef or you can try to duplicate PageDef's declaration in DataBindings.cpx (without duplicating the PageDef's XML file). If you choose the second one then open the <tt>DataBindings.cpx</tt> file and copy the corresponding line, for example:
    <pageDefinitionUsages>
      <page id="MyPanelPageDef"       path="view.myproject.pageDefs.MyPanelPageDef"/>
      <page id="MySecondPanelPageDef" path="view.myproject.pageDefs.MyPanelPageDef"/>
    </pageDefinitionUsages>In this way you will declare a new PageDef instance without duplicating the PageDef's file. Then go to the beginning of the 2nd panel's Java class and set the new PageDef ID into it, for example replace the line:
    private String pageDef = "MyPanelPageDef"; with private String pageDef = "MySecondPanelPageDef"; (Of course, these names are just sample ones and you should set the corrent ones).

  • ADF Swing Form Layout

    Hi,
    I am new to ADF swing and developing my very first applications and I am running into following challenges.
    1. After creating business components(model) and view components,  I created an empty form
    2. From Data Control , I selected collection of attributes and dragged to the ADF Form area.
    3. Then, clicked on Edit Form ,and made necessary changes and then confirmed the changes.
    Now, I see that layout is completely locked or frozen. I can not drag or move any labels or any fields.  I also can not resize any text field.
    After reviewing further documentation,  I set column property in  helper.java file but still I can not resize, or move any of the field.
    Any idea why it is not working?  Also tried passing following in the code but still no luck
    setMaximumSize(new Dimension(80, 70));
    setPreferredSize(new Dimension(50, 50));
    Please advise.
    Thanks,
    Darsh

    Thanks Frank.
    I have gone through the link provided.  This approach sounds like more time consuming from development standpoint.    I will explore more. But now I am contemplating to move to Netbeans.    Not being able to use Java Swing in same manner as ADF swing and the fact that ADF Swing has been deprecated makes me think that way.
    This does bring up a point from Oracle's technology direction though.   It appears that technology to deliver native, standalone, traditional desktop applications are just not going to be supported anymore from Oracle and with cloud computing gaining momentum as time passes, it will become increasingly challenging to find a desktop development tool in Oracle's offering.
    Would you agree?

  • ADF Swing - Moving bound components to another panel (actually JFrame)

    We have an old(er) application developed on ADF Swing connecting to an Oracle Lite database using jdev 10.1.3.5. Everything works fine, but we want to reduce some screen clutter and move some fields off the main panel to be revealed in a separate "window" if the user presses a button. I created a JFrame (obviously not with the jdev designer as it doesn't seem to know what a JFrame is) and a JPanel where I move the "Address" fields (some fields that are only occasionally used). I drop the JPanel into the JFrame, make sure all of the code is in the jbInit section, add a button to do the setVisible and voila! As I scroll through the records in the main screen after a Find Execute, the address information changes along with it. However, if I try to enter Find mode and use one of the Address fields (like City), these fields do NOT become part of the find conditions. And yes, they are query-able in the BC4J component and yes, it did work when they were all on one pane.
    I suspect its the fact that the components don't identify themselves as being part of the panel that is bound to the iterator. So, how SHOULD I have done this so that I can use these fields in a Find AND in the results?

    Hi,
    try
    jTable1.setModel((TableModel)panelBinding.bindUIControl("JobHistoryView1",jTable1));
    jTable1.setColumnSelectionAllowed(true);
    jTable1.setRowSelectionAllowed(true);
    jTable1.getColumnModel().addColumnModelListener(new TableColumnModelListener(){
    public void columnAdded(TableColumnModelEvent e) {}
    public void columnRemoved(TableColumnModelEvent e){}
    public void columnMoved(TableColumnModelEvent e) {}
    public void columnMarginChanged(ChangeEvent e) {}
    public void columnSelectionChanged(ListSelectionEvent e) {
    boolean editMode = jTable1.editCellAt(jTable1.getSelectedRow(),jTable1.getSelectedColumn());
    if (editMode){
    jTable1.changeSelection(jTable1.getSelectedRow(),jTable1.getSelectedColumn(), false, true);
    Note that this works not 100% on row change, so make sure the select boxes are not on the first column
    Frank

  • ADF 3-tiered with Swing front-end is it possible?

    Hi,
    I'm beginning to use Oracle ADF and JDeveloper 10.1.3.
    My intention is to develop a 3-tiered application. In the persistence tier an Oracle database will be used, in the business tier I would like to use Oracle ADF, and in the front-end Swing with screens for edit and querying data. The Swing front-end will not have direct access to the database, and in the future the business tier could be used by a Web front-end with Servlets and JSPs.
    Which benefits I can get with Oracle ADF for this type of application?
    What ADF components can be used in the business tier?
    How can it deliver and receive data from the Swing front-end (EJB, Web Service, another approach)?
    Somebody knows some tutorial about ADF/Swing applications?
    Thank´s.

    I've been working on a soon-to-go-production 3-tier ADF Swing project for a while.
    I would say it is possible but not easy. A lot of effort in my project has gone into workarounds for various things that do not work as expected (and not as in 2-tier mode), refresh-issues, deployment issues and other. We have found workarounds for most of them and JDev 10.1.3 is a lot better for ADF Swing then earlier releases.
    Scalability is still an unsolved issue for us as a lot of functionality you'd expect in a rich gui is lost when using "batch mode" which probably scales better then "immediate".

  • Nested panels in Swing

    Hi, everyone
    i want to know about nested panels in detail. If we make heirarchy of panels at third level then how we can perform drawing in uppermost(last child). please suggest me ideas and give links that gives sufficient matter about it.
    Thanks in advance.
    Rakesh Ojha

    Hello DB sir
    thanks for gentle reply
    i m not getting the website address from your message on which layout managers are discussed in tutorial. If you mean sun.com then please tell me.
    Thanks
    Rakesh Ojha

  • ADF swing forms and panels developer documentation

    Can anyone recommend me a ADF swing forms and panels documentation or tutorials?
    Thanks in advance.

    Good question cherem.
    Last I heard ... "its not available and still a plan":
    ADF Swing follow-on developer's guide
    regards
    Jan Vervecken

  • Help needed with 6 panel a3 layout

    Hi,
    I haven't used indesign for quite some time and even when I did I only really dipped my toe in the water.  I have recently purchased the cs5 master collection, mostly for photoshop and illustrator but I have been asked to produce a leaflet and I am hoping that someone could help me with the intial layout.
    What I want to do is to produce a 6 panel leaflet on a folded a3 page, the other side of the a3 page will be a map.  This document will be printed on a3 hp laserjets so I cannot print edge to edge.
    For some reason the image below isn't showing the lines I put in to explain the folds but basically the a3 page is to be folded once down the centre and then 2 more folds to make it a booklet size of aproximately 140 x 150.
    Do I have to set up an a3 page and set this up manually?  Ideally I would like to be able to create a document that has a separate front page, page 1,2 and 3 (which is also the back) together so I can spread the information over the entire 3.  And again inside 1 and inside 2 together so that I can create information spread over the 2 pages.
    I hope this makes some sort of sense, I don't know the technical terms for the layout so I'm trying to learn as I go.
    Thanks

    yes, I have to get it all onto the one a3 page in the end.
    if I was to set up guides for the a3 page, can I roate the view of the page around so that I am not working upside down (so to speak).
    if I can do that then it would probably be easier to just set up my own guides on the page.
    Thanks for replying so quickly.

  • How do i put an array of panels into a frame with a flow layout?

    I just want to have my array of Jpanels displayed in a Jframe with a flow layout, how do i do this?
    thanks

    saru88 wrote:
    The problem is:
    cards.setBackground(Color.red);
    No, the real problem was before that. I saw SD before the stack trace in your original code, but the code 'ignored' that and continued on to the second exception you saw.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MemoryFrame extends JFrame{
         private CardPanel[] cards;
         final int noCards = 24;
         public MemoryFrame(){
              setTitle("Apple");
              Toolkit tk = Toolkit.getDefaultToolkit();
              int screenWidth = tk.getScreenSize().width;
              int screenHeight = tk.getScreenSize().height;
              int halfWidth = screenWidth/2;
              int halfHeight = screenHeight/2;
              setBounds(halfWidth/2,halfHeight/2,halfWidth-45, halfHeight+50);
              Container c = getContentPane();
              c.setLayout(new FlowLayout());
              addWindowListener(new WindowAdapter () {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              // this creates an array for 10 CardPanels, but they all start out as 'null'
              cards = new CardPanel[noCards];
              for(int i=0; i<noCards; i++){
                   try{
                        // this creates each individual CardPanel
                        cards[i] = new CardPanel();
                        cards.setBackground(Color.red);
                        // if there is an exception, it is pointless continuing
                        c.add(cards[i]);     
                   }catch(Exception e){
                        System.out.println("SD");
                        e.printStackTrace();
         public static void main(String[] args) {
              // very hackish
              new MemoryFrame().setVisible(true);
    class CardPanel extends JPanel {

  • ADF Swing - what happened to 'Display panel.java'

    When editing a for with embedded panels, in Jdev 10, when you right-click on the panel there is an option 'Display panel.java', that opens embedded panel for edit. I don't see this option in 11gTP3

    Sorry, wrong forum, this was supposed to be on 11g forum.

  • Help required building ADF-Swing/ADF-Faces using ADF Business Components

    My question is in regards to how you can go about building a light swing application to an ADF model?
    In particular if I were to say that we were developing a 3-tier project whereby we had a database tier, a series of EJB-ADF façade session beans to the database (middle-tier), and a swing client communicating with the session beans (view-controller tier), how would you go about developing these screens?
    In particular can we develop these screens using ADF-Faces and also ADF-Swing?
    The EJB session façade beans of course are ADF app modules with customised methods. The methods would return back customised DTO objects. These DTO objects are wrappers to row objects ADF would create. This would be mainly due to making these facade beans web service enabled (Oracle state that these methods cannot return oracle.jbo objects if they are to be web service enabled).
    This would be typically deployed to an app server, like Oracle App Server 10G.
    Could you please have a look at this, as I am doing a lot of research into this.
    eg. Taking example from oracle magazine sept/oct 2006
    with slight enhancements
    package oramag.frameworks.example.common;
    import oracle.jbo.ApplicationModule;
    import oramag.frameworks.customdto.EmployeeDTO;
    public interface HRService extends ApplicationModule {
    void deleteCurrentEmpAndCommit();
    EmployeeDTO findEmployee(int employeeId); // new method
    import oramag.frameworks.customdto.EmployeeDTO;
    public class HRServiceImpl extends ApplicationModuleImpl {
    public void deleteCurrentEmpAndCommit() {
    Row empRow = getEmpView().getCurrentRow();
    if (empRow != null) {
    empRow.remove();
    getDBTransaction().commit();
    public EmployeeDTO findEmployee(int employeeId)() {
    EmployeeDTO employeeDTO = null;
    EmployeesImpl employees = getEmployees();
    employees.setNamedWhereClauseParam("EmployeeId", employeeId);
    employees.executeQuery();
    if(employees.hasNext()) {
    EmployeesRowImpl employee = (EmployeesRowImpl)employees.next();
    employeeDTO = new EmployeeDTO(employee);
    return employeeDTO;
    public EmployeesImpl getEmployees() {
    return (EmployeesImpl)findViewObject("Employees");
    Now given the above code snippet, how could you turn this into an ADF-Swing/ADF Faces application so that if a user using the swing application enters an employee id, then the application will execute the query on the app server, the app server in turn returns the results to the client, and the client finally display the results. Typical MVC example.
    Cheers
    Rodney

    The tutorial is for ADF BC used with JavaServer Faces.
    While the tutorial doesn't cover it, we also support drag and drop development for Swing and visual WYSIWYG layout for Swing panels and windows, too. For a very simple example, watch screencast #4 on my blog here:
    http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html
    One thing I have noticed is that when using ADF business components, when the app module returns a custom DTO object like the above example, it returns the data in a element structure according to the data control palette.
    You don't generally ever need to create your own custom DTO's when working with ADF for use by client UI's. The only situation where can be necessary -- until we simplify this in the JDeveloper/ADF 11g release -- is when you desire to expose custom methods that can return sets/arrays of typed row structures through a web service. However, web services are not involved/required in building 3-tier Swing applications.
    When dropping onto a page it does so like a string and doesnt give option to display the data in a read only form etc. Is there anything we need to do, to get the functionality.
    It's more of what you don't need to do :-)
    Just leverage the active data model that the ADF application module provides. You can read more about it in section 4.5 "Understanding the Active Data Model" of the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html). Your UI's bind to view object instances in the data model, and your UI's are automatically kept up to date without needing to write methods that return data. I short article I wrote that preceeded my writing the ADF Developer Guide content on this topis is here:
    http://radio.weblogs.com/0118231/stories/2006/01/26/theAdfBusinessComponentsActiveDataModel.html
    I know that when dropping a view object you get this functionality. Also was wondering if we were to pass an object of thios type back to the model it might not give us the rich functionality like input forms, like what Oracle provides if we were to drop a enitity view object.
    Just use the active data model and everything becomes totally easy, with no changes required to switch between local or three-tier deployment configurations.
    Trying to do everything with hand-coded DTO beans is really going the hard way.
    Could you help us regarding this?

Maybe you are looking for

  • MacBook Pro Hard Disk won't stop filling up!

    I was watching a DVD on my MacBook when suddenly I was prompted with a message telling me I had only 200mb left on my startup disk. I found it odd, and continued watching, only to find that 5 minutes or so later I had only 12kb remaining! Currently i

  • Updating target table with date in owb using mapping

    I want to update the effetive begin date (month begin date) when we load the target table. I have field in target table has Eff_updated_dt defined as DATE. If I use the Data generator operator and then expression operator (trunc (sysdate,'mm' ) it gi

  • T400 strange power issue

    I have a strange intermitent problem with my T400. Usually, I put the machine into hibernate at night. I then usually unplug the device and all the lights go out. Twice now, after doing the above, I have returned in the morning to find the battery li

  • Save as epub

    Is it possible to save Pages documents directly from the iPad app into ePub format?

  • Using Customer Exit of an iView

    Hi I want to pass a dynamic custom parameter to my webdynpro ABAP component which is shown in portal as com.sap.appintegrator.sap iView. I have created a portal service which implements ICustomerParameterProvider interface. i have overridden the meth