Refresh components in a panel

hi ,
How to refresh components present in a panel, i tried validate and revalidate...
actually i have text boxes and combo boxes in a panel and this panel changes for a tree event listener . i.e ,when ever i click on any of the childs in that tree the content present in the text boxes in that panel should get refreshed.as i am using the same panel for all the childs in that tree.
I would be grateful to you if you help me out of this problem.
Thanks
lankss

If your text boxes have to change when you click and depend on node names , you need to define a listener which gets control every time you click. In your listener, you may retrieve the node name, and therefore you are able to display what you want somewhere else (ie. Text boxes)
Here is an example that I have implemented myself :
       mytree.addTreeSelectionListener(new TreeSelectionListener() 
          public void valueChanged(TreeSelectionEvent e)
               node =  (DefaultMutableTreeNode)       mytree.getLastSelectedPathComponent();
               if(node == null)  return;
                TreePath tP = mytree.getSelectionPath();
                        String NodePath = tP.toString();  // same as a string
               if (node.isLeaf())
                    refreshTextBox(....)    //   do what you want here
               else
                      //   do what you want here
     );Hope this can help.
Gege

Similar Messages

  • Programmatically refresh components inside a specific row of an af:table

    How to programmatically refresh components inside a specific row of an af:table without refreshing the whole table ?_
    I have an af:table displaying a read-only view object. There is an edit button inside the table calling an af:popup, where the user can update some informations and click a submit button to validate his changes.
    The action property of this button is a method in a backing been where
    -     1 : A stored procedure is called to update several tables (related to my read-only VO).
    -     2 : The VO is re-queried (VO. refreshQueryKeepingCurrentRow() )
    -     3 : The whole table is refreshed (AdfFacesContext.getCurrentInstance().addPartialTarget(myTable) )
    Is it possible to programmatically refresh some components of the current row of the table without refreshing the whole table (point 3)?
    I’ve tried to play with the “partialTrigger” property of af:outputText (table:column:outputText), without success.
    Thanks
    Nicolas

    "+do you happen to want to refresh following an action on the row? Like a link/button click?+" : NO
    There is a table on my page. The user select a row and click on an edit button. This edit button call a popup where the user can modify some information (not directly on the viewObject. All fields in the popup are dummy fields bind to attributes in my backing bean) and then he click on a submit button.
    The submit button action execute a method "submitInformation" in a backing been.
    public String submitInformation(){
            Map<String, Object> params = new HashMap<String, Object>();
            params.put("pManNo", xManNo.getValue()); //xManNo is an attribute of the backing bean
            params.put("pDate", xPeriod.getValue()); //xPeriod is an attribute of the backing bean
            // Execute Operation
            OperationBinding oper = ADFUtils.findOperation("serviceSubmitInfo");
            oper.getParamsMap().putAll(params);
            String results = (String)oper.execute();
            // Close Popup & Refresh Row if OK
            if(!StringUtils.isStringEmpty(results) && results.equals("TRUE")){
                 closePopup("pt1:popAbs");
                 refreshMyCol();
    }The serviceSubmitInfo method is defined in my serviceImpl
        public String serviceSubmitInfo (String pManNo, String pPeriod, ......){
             String results =
                callStoredFunction("? :=myDatabaseFunction(?, ?, ?, ?)",
                                   new Object[] { pManNo, pPeriod, ...... });
              // Commit
              getDBTransaction().commit();
              // Refresh VO (re-query & set currentRow)
              getMyVO().refreshQueryKeepingCurrentRow();         
              return results; // TRUE if ok
        }I want the " refreshMyCol()" method to refresh only the current row and not the whole table...
    Regards
    Nicolas

  • How to refresh components of one jsf from another jsf (partialTriggers)

    This thread begins here:
    How to refresh components of one jsf from another jsf (partialTriggers)
    My apologies for post in other forum and thanks Frank for reply.
    I found a solution before read your post. I'm newbie and I ignore the use of colons. So, for do the problem that I explain in my post I must to change this code:
    public backing_home () {
    content = new RichPanelGroupLayout();
    content.setRendered (true);
    String[] partialTriggers = {"menu:menuItem1", "menu:menuItem2", "menu:menuItem3", "menu:menuItem4"}; //All id's of menuItems of the menuBar in menu.jsp
    this.content.setPartialTriggers(partialTriggers);
    Note that now I don't pass the item ID only. I add "menu:" before the ID. This allows to acces to name container ('menu' is de ID of subview). And that's all. This works!!
    Anyway, I test your propuse Frank. Thank you!
    Westh

    Westh,
    Yes this code appears to be correct. Was that your question?
    --Ric                                                                                                                                                                                   

  • Disable all the components of a panel ( panels within the main panel )

    Hi guys!
    I have a problem!
    i have to disable all the components of a panel. please note that i am also having panels within the main panel. please tell me how to do that!!!
    its urgent!!

    Hi guys!
    I have a problem!Wouldn't have figured that one out by myself ...
    its urgent!!No, it's not.
    You know, a panel is most often a subclass of Container, so all you need to do is recursively disable all child components. The methods getComponents and getComponent are very helpful when trying to access child components. Code likeif ( comp instanceof Container )
      // do soemthing
    }will help in determining whether a child component is yet another Container.

  • Overlap of components in the panel

    This is for an application which computes the total cost of configured laptop.
    The main window has 2 panels. The top panel should have a label, and textfield. 3 comboboxes, radiobuttton group, 2 check boxes. I am not able to display the components next to each other. They overlap in the top panel.(This panel has a GridLayout) The code is as follows(does not have all the components yet)
    The 2nd panel has a 2 buttons and textarea. Can anybody please help.
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.*;
    import java.util.*;
    public class WClass extends JFrame implements ActionListener
         private Container pane;
         private JPanel P1;
         private JPanel P2;
         private JButton submit;
         private JButton clear;
         private JTextArea Out;
         private JLabel name;
         private JTextField Custname;
         private JComboBox processor;
         private JComboBox harddrive;
         int row;
         public WClass()
              super("Laptop Computer Configuration");
              P1 = new JPanel();
              P1.setLayout(new GridLayout(2,4));
              P2 = new JPanel(new BorderLayout());
              name = new JLabel("Customer Name");
              add(name);
              Custname = new JTextField(10);
              Custname.addActionListener(this);
              add(Custname);
              String p[] = {"Pentium 4", "Celeron", "AMD", "Intel Centrino"};
              processor = new JComboBox(p);
              processor.setMaximumRowCount(3);
              processor.addItemListener(
                             new ItemListener()
                   public void itemStateChanged(ItemEvent e)
                        if(e.getStateChange() == ItemEvent.SELECTED)
                        row = processor.getSelectedIndex();
              add(processor);
              String h[] = {"30 GB", "40 GB", "60 GB"};
              harddrive = new JComboBox(h);
              harddrive.setMaximumRowCount(2);
              harddrive.addItemListener(
                             new ItemListener()
                   public void itemStateChanged(ItemEvent e)
                        if(e.getStateChange() == ItemEvent.SELECTED)
                        row = harddrive.getSelectedIndex();
              add(harddrive);
         add(P1, BorderLayout.NORTH);
              submit = new JButton("Submit");
              clear = new JButton("Clear");
              Out = new JTextArea(10,5);
              P2.add(submit, BorderLayout.WEST);
              P2.add(clear, BorderLayout.EAST);
              P2.add(Out,BorderLayout.CENTER);
              add(P2, BorderLayout.SOUTH);
         public void actionPerformed(ActionEvent event)
    import javax.swing.JFrame;
    public class Win
         public static void main(String args[])
              WClass window = new WClass();
              window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
              window.setSize( 500,400);
              window.setVisible( true);
    }

    It is not easy to read your code due to lack of formatting. When you post code you should highlight it and click the "code" button. This preserves the formatting.
    I see some lines that say "add(whatever)". Shouldn't these be "P1.add(whatever)". In other words you want to be adding components to a panel rather than the base JFrame if I understand your requirement..

  • Error refreshing report from parameter panel

    I'm using Crystal Reports 2008 SP3 with .Net 4.0 in visual studio 2010
    I'm using the following components
    CrystalDecisions.CrystalReports.Engine   12.0.2000.0
    CrystalDecisions.Enterprise.Framework   12.0.1000.0
    CrystalDecisions.Enterprise.InfoStore       12.0.1000.0
    CrystalDecisions.Shared                           12.0.2000.0
    CrystalDecisions.Windows.Forms            12.0.2000.0
    I have embedded the ViewerComponent in a windows form, everything works fine, loading report, exporting, printing, refreshing.
    However, I need to allow the user to refresh the report by using the parameter panel, because once the report has been loaded, some parameters are not allowed to be changed by a user. So I try to accomplish this by using the parameter optional function and show in parameter panel (read only/ editable / Don't show)
    However, when I try to edit a parameter in the parameter panel, I get to see the regular refresh dialog (this isn't a big problem...) however, when I do not enter any values, or just a few parameters, or all parameters, the viewer crashes with the following error:
    Unable to cast object of type 'CrystalDecisions.Shared.ParameterField' to type 'CrystalDecisions.Windows.Forms.ParameterFieldInfo'.
       at CrystalDecisions.Windows.Forms.ParameterFieldsInfos.get_Item(Int32 index)
       at CrystalDecisions.Windows.Forms.InteractiveParameterPanel.ShowParameters()
       at CrystalDecisions.Windows.Forms.CrystalReportViewer._ipPanel_ApplyButtonClicked(Object sender, EventArgs e)
       at CrystalDecisions.Windows.Forms.InteractiveParameterPanel.HandleApply()
       at CrystalDecisions.Windows.Forms.InteractiveParameterPanel.toolBar_ButtonClick(Object sender, ToolBarButtonClickEventArgs e)
       at System.Windows.Forms.ToolBar.OnButtonClick(ToolBarButtonClickEventArgs e)
       at System.Windows.Forms.ToolBar.WmReflectCommand(Message& m)
       at System.Windows.Forms.ToolBar.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, Message& m)
       at System.Windows.Forms.Control.WmCommand(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.UserControl.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
       at System.Windows.Forms.Control.DefWndProc(Message& m)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ToolBar.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
    Does anyone knows what goes wrong or what I'm doing wrong?
    Thanks in advance

    Thanks for your response.
    However, your not really right about that. I have integrated the viewer component into a WindowsFormHost, so it will just operate like a normal Windows Forms applcation.
    However, I'm wondering what is causing the Exception. It is trying to cast a ParameterField, can I override this?

  • Aligning group of components in a panel grid

    I have a panelGrid that has two columns. The first is a table and the second is a groupPanel.
    I want the components in the groupPanel to be left justified but even using css styles such as the following the groupPanel is always centered.
    .alignTopLeft {
      vertical-align: top;
      text-align: left;
    }I have also tried the following:
    .alignTopLeft {
      vertical-align: top;
      text-align: left;
        position: relative;
        top: 1px;
        left: 1px;
    }I notice that their does not seem to be a horizontal-align attribute which would make more sense to me. I also suspect that the above styles do not work because I am dealing with a group of components instead of a single component (such as a text field).
    In order to get the look I want I have had to resort to using a layout panel set to 'grid' and hand placing my sub elements. I keep on thinking I am missing something and that their is a better way to do this.
    Granted this is based on my experience with Swing which has rich set of layout managers...
    If anyone has a better solution please let me know. (And remember that a sample is always welcome)

    Some more information.
    I also tried using the following setting:
    .alignTopLeft {
      vertical-align: top;
      float: left;
    }While this placed the component in the desired location it had an unfortunate side effect. When I set the text area to have some value (in my back bean) the value did not show up in the text area but instead appeared to overlap the left most component on row of the panelGrid.
    So far the only way I have been able to get this to appear the way I would like is to use a panelLayout with a grid (fixed) layout.
    I hope that future versions of Woodstock will have better layout managers. Coming from Swing it is very frustrating to have to use tricks like this.

  • "Best practice" for components calling components on different panels.

    I'm very new to Swing. I have been learning from tutorials, but these are always relatively simple interfaces , in which every component and container is initialised and added in the constructor of a main JFrame (extension) object.
    I would assume that more complex, real-world examples would have JPanels initialise themselves. For example, I am working on a project in which the JFrame holds multiple JPanels. One of these Panels holds a group of JToggleButtons (grouped in a ButtonGroup). The action event for each button involves calling the repaint method of one of the other Panels.
    Obviously, if you initialise everything in the JFrame, you can simply have the ActionListener refer to the other JPanel directly, by making the ActionListener a nested class within the JFrame class. However, I would like the JPanels to initialise their own components, including setting the button actions, by using an extension of class JPanel which includes the ActionListeners as nested classes. Therefore the ActionListener has no direct access to JPanel it needs to repaint.
    What, then, is considered "best practice" for allowing these components to interact (not simply in this situation, but more generally)? Should I pass a reference to the JPanel that needs to be repainted to the JPanel that contains the ActionListeners? Should I notify the main JFrame that the Action event has fired, and then have that call "repaint"? Or is there a more common or more correct way of doing this?
    Similarly, one of the JPanels needs to use a field belonging to the JFrame that holds it. Should I pass a reference to this object to the JPanel, or should I have the JPanel use "getParent()", or some other method?
    I realise there are no concrete answers to this query, but I am wondering whether there are accepted practices for achieving this. My instinct is to simply pass a JPanel reference to the JPanel that needs to call repaint, but I am unsure how extensible this would be, how tightly coupled these classes would become.
    Any advice anybody could give me would be much appreciated. Sorry the question is so long-winded. :)

    Hello,
    nice to get feedback.
    I've been looking at a few resources on this issue from my last post. In my application I have been using the Observer and Observable classes to implement the MVC pattern suggested by T.PD.(...)
    Two issues (not fatal, but annoying) with this are:
    -Observable is a class, not an interface; since most of my Observers already extend JPanel (or some such), I have had to create inner classes.
    -If an Observer is observing multiple Observables, it will have to determine which Observer called its update() method (by using reference equality or class comparison or whatever). Again, a very minor issue, but something to keep in mind.I don't deem those issues are minor. The second one in particular, is rather annoying in terms of maintenance ("Err, remind me, which widget is calling this "update()" method?").
    In addition to that, the Observable/Observer are legacy non-generified classes, that incurr a loosely-typed approach (the subject and context arguments to the update(Observable subject, Object context) methods give hardly any info in themselves, and they generally have to be cast to provide app-specific information.
    Note that the "notification model" from AWT and Swing widgets is not Observer-Observable, but merely EventListener . Although we can only guess what reasons made them develop a specific notification model, I deem this essentially stems from those reasons.
    The contrasting appraoches are discussed in this article from Bill Venners: The Event Generator Idiom (http://www.artima.com/designtechniques/eventgenP.html).
    N.B.: this article is from a previous-millenary series of "Design Techniques" articles that I found very useful when I learned OO design (GUI or not).
    One last nail against the Observer/Observable model: these are general classes that can be used regardless of the context (GUI/non-GUI code), so this makes it easier to forget about Swing threading rules when using them (essentially: is the update method called in the EDT or not).
    If anybody has any information on the performance or efficiency of using Observable/ObserverI would be very surprised if this had any performance impact. If it had, that would mean that you have either:
    - a lot of widgets that are listening to one another (and then the Mediator pattern is almost a must to structure such entangled dependencies). And even then I don't think there could be any impact below a few thousands widgets.
    - expensive or long-running computation in the update methods. That's unrelated to the notification model itself.
    - a lot of non-GUI components that use the Observer/Observable to communicate among themselves - all the more risk then, to have a GUI update() called outside the EDT, see remark above.
    (or whether there are inbuilt equivalents for Swing components)See discussion above.
    As far as your remark 2 goes (if one observer observes more than one subjects, the update() method contains branching logic) : this also occurs with the Event Delegation model indeed: for example, it is quite common that people complain that their actionPerformed() method becomes unwieldy when the same class listens for several JButtons.
    The usual advice for this is, use anonymous listeners, each of which handles the event from only one source (and generally very close in code to the definition of that source), and that simply translates the "generic" event notification method into a specific method call of a Controller or Mediator .
    Best regards.
    J.
    Edited by: jduprez on May 9, 2011 10:10 AM

  • I have  a singleton that contains my data object. How to refresh components

    I have a singleton that contains my data object. This
    singleton data is used to populate comboboxes and datagrids across
    various custom components that are children of the main
    application. These components can manipulate the singleton. When
    these changes are made to the singleton what do I have to do to get
    this data to refresh across the componets that use its data?

    I assume that your mail app on your iPad/iPhone is Apple Mail.  You can open a MS Word/Excel document in Adobe Reader for iOS and convert it to PDF at a time.
    In Mail, long press (press & hold) an attachment icon.
    Select "Open in Adobe Reader".
    Follow the instructions shown in Adobe Reader to subscribe to a paid service called "Adobe PDF Pack" to convert the document to PDF.
    Please note that Adobe Reader for iOS itself is a free app but the subscription for the Word/Excel to PDF conversion is a paid service (i.e. not free).
    In case you have any questions about Adobe PDF Pack, here's the user forum.
    Adobe PDF Pack

  • Trying to get components inside a panel in content pane

    Hello,
    I am trying to update the combo boxes inside a panel with a list of values(list is stored as an array).
    My heirarchy of components is as follows:
    frame-->contentpane-->gamepanel-->combopanel-->combobox
    i am able pass my frame into my code. now i have to get the combobox to update it.
    frame.getcontentpane()this returns to me my contentpane - RIGHT/WRONG???
    if right, after this how do i reach the combopanel and get the combobox such that I am able to write
    combobox.addItem(array)HELP PLEASEEEEEEEEEEEEE
    Thanks,
    Manju

    Be patient. 30 minutes is not a long time to wait for answers, especially on the weekend. Instead of waiting impatiently why don't you try reading sections from the Swing Tutorial. For example, How to Use Combo Boxes:
    http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html
    so how do i keep the reference?Define a class variable for the combo box:
         This works on non editable combo boxes
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    public class ComboBoxAction extends JFrame implements ActionListener
         JComboBox comboBox;
         public ComboBoxAction()
              comboBox = new JComboBox();
              comboBox.addActionListener( this );
              comboBox.addItem( "Item 1" );
              comboBox.addItem( "Item 2" );
              comboBox.addItem( "Item 3" );
              comboBox.addItem( "Item 4" );
              //  This prevents action events from being fired when the
              //  up/down arrow keys are used on the dropdown menu
              comboBox.putClientProperty("JComboBox.isTableCellEditor", Boolean.TRUE);
              getContentPane().add( comboBox );
         public void actionPerformed(ActionEvent e)
              System.out.println( comboBox.getSelectedItem() );
              //  make sure popup is closed when 'isTableCellEditor' is used
              comboBox.hidePopup();
         public static void main(String[] args)
              final ComboBoxAction frame = new ComboBoxAction();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setVisible( true );
    }Even though the combo box is created in the constructor, the actionPerformed() method can still access the combo box because it was defined as a class variable.

  • I want to remove all the components from particular panel.

    hi all,
    i have 3 panels p,p1,p2.i added panels p1 and p2 to a window,then i added a panel p(this panel contaning JScrollPane) to a panel p1.i have a button on panel p2,if i press that button i want to remove all the components as well ass JScrollPane(remember JScrollPane in panel p).
    if possible give example.
    Thanks in advance
    bhaskar
    code is here
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    public class test1 extends Window implements ActionListener
    JPanel p,p1,p2;
    JScrollPane jp;
    Button b,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12;
    test1()
    super(new Frame("testing"));
    p=new JPanel();
    p1=new JPanel();
    p2=new JPanel();
    adding();
    jp=new JScrollPane(p);
    jp.setPreferredSize(new Dimension(300,300));
    add(jp);
    setSize(new Dimension(200,200));
    setVisible(true);
    public void adding()
    b12=new Button("hai");
    b12.addActionListener(this);
    p2.add(b12);
    add(p1,BorderLayout.CENTER);
    add(p2,BorderLayout.WEST);
    p.setLayout(new GridLayout(11,1));
    p.setBackground(Color.white);
    b=new Button("one");
    b1=new Button("two");
    b2=new Button("three");
    b3=new Button("4");
    b4=new Button("5");
    b5=new Button("6");
    b6=new Button("7");
    b7=new Button("8");
    b8=new Button("9");
    b9=new Button("10");
    b10=new Button("11");
    b11=new Button("12");
    p.add(b);
    p.add(b1);
    p.add(b2);
    p.add(b3);
    p.add(b4);
    p.add(b5);
    p.add(b6);
    p.add(b7);
    p.add(b8);
    p.add(b9);
    p.add(b10);
    p.add(b11);
    p1.add(p);
    public void actionPerformed(ActionEvent e)
    if(e.getSource()==b12)
    System.out.println(e.getSource());
    System.out.println("111");
    p.removeAll();
    public static void main(String args[])
    test1 t=new test1();
    /*****************************************/

    p.removeAll();

  • 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

  • Align Components how a panel Form Layout

    hi,
    I have the panel form layout with components, fine perfect, but...
    when I want to put a LOV such an output the text
    the center together the alignment of the components is lost i have the picture :)
    http://img100.imageshack.us/img100/7164/perfectoif.png
    but i want put the output text join component , example:
    http://img525.imageshack.us/img525/4543/asiquiero.png
    the logic solution, i group component with panel group layout but the form i see:
    http://img97.imageshack.us/img97/1096/erroryd.png
    Any idea?? i use jdev 11.1.1.2
    Joaquin
    Edited by: ADFboy on 03-may-2010 10:54
    Edited by: ADFboy on 03-may-2010 11:43

                  <af:panelFormLayout id="pfl1" labelAlignment="start"
                                      maxColumns="2" rows="1">
                    <af:panelGroupLayout id="pgl2" layout="horizontal"
                                         valign="bottom" halign="start"
                                         inlineStyle="text-align:left;">
                      <af:inputListOfValues label="ghdghd ghdghdf"
                                            popupTitle="Search and Result Dialog"
                                            id="ilov2"/>
                      <af:outputText value="outputText2" id="ot2"/>
                    </af:panelGroupLayout>
                    <af:inputListOfValues label="Label 1 fgs d"
                                          popupTitle="Search and Result Dialog"
                                          id="ilov1"/>
                    <af:inputListOfValues label="Label 2"
                                          popupTitle="Search and Result Dialog"
                                          id="ilov4"/>
                    <af:panelGroupLayout id="pgl1" layout="horizontal">
                      <af:inputListOfValues label="dghd ghdhd"
                                            popupTitle="Search and Result Dialog"
                                            id="ilov3"/>
                      <af:outputText value="outputText3" id="ot1"/>
                    </af:panelGroupLayout>
                    <af:inputListOfValues label="Label 3"
                                          popupTitle="Search and Result Dialog"
                                          id="ilov5"/>
                    <af:inputListOfValues label="Label 4"
                                          popupTitle="Search and Result Dialog"
                                          id="ilov6"/>
                    <af:inputListOfValues label="Label 5"
                                          popupTitle="Search and Result Dialog"
                                          id="ilov7"/>
                    <af:inputListOfValues label="Label 6"
                                          popupTitle="Search and Result Dialog"
                                          id="ilov8"/>
                  </af:panelFormLayout>

  • Components in grid panel out of order

    Experiencing this with VWP but had it some with Creator 2 as well:
    I line up my components in the right order in the designer, but wen I deploy they are in a different order. Usually they are in the wrong order in the JSP as well...the designer still shows them in the right order until I restart, then the designer shows the wrong order as well. If i act quick I might be able to get them to stay in order, but half the time when I deploy they are in a random order. If I (luckily) get them set they won't change...but manipulating the order at all is sure to cause them to screw up somewhat randomly. This is killing me. I can't use this tool like this. Has anyone else experienced this? Is there a plan to fix it?
    - Mark

    Is it possible that you could zip up your project and send it to cfqa-testapps AT sun DOT com?
    If not, could you please give us more details/a series of steps in order to duplicate the problem.
    Thanks,
    /krys

  • Dragging (and dropping) components in a panel

    I want to learn how to move a component or image around in a panel and drop it. To also drop other images and then connect the images with a connecting line. I don't really need to go into the Drag and Drop API because I'm just staying in my GUI. Can someone direct me to a resource that might help me?
    Gracias,
    Miguel

    Hi!
    Here's a small program with a draggable Button.
    Have a look at the class 'DraggableButton'.
    Cheers Tom
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class DragButton extends JFrame {
         public DragButton()     {
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              getContentPane().setLayout(null);
              DraggableButton b = new DraggableButton("Drag me");
              getContentPane().add(b);
              b.setBounds(30,30,100,30);
         public static void main(String args[]) {
              DragButton f = new DragButton();
              f.setBounds(200,200,400,400);
              f.setVisible(true);
    class DraggableButton extends JButton implements MouseListener, MouseMotionListener {
         public DraggableButton(String text) {
              super(text);
              addMouseListener(this);
              addMouseMotionListener(this);
         int oldX, oldY;
         public void mousePressed(MouseEvent ev) {
              oldX = ev.getX();
              oldY = ev.getY();
         public void mouseDragged(MouseEvent ev) {
              int dx = ev.getX() - oldX;
              int dy = ev.getY() - oldY;
              setLocation(getX() + dx, getY() + dy);
         public void mouseClicked(MouseEvent ev) {}
         public void mouseReleased(MouseEvent ev) {}
         public void mouseEntered(MouseEvent ev) {}
         public void mouseExited(MouseEvent ev) {}
         public void mouseMoved(MouseEvent ev) {}
         static void p(String s) {
              System.out.println(s);
    }

Maybe you are looking for

  • Why is my ipod screen blank?

    I am having trouble with my ipad. When i try to switch it on, only a backlight comes on for a couple of seconds then turns blank again. I have restored my settings to the default settings, and updated the software. Does anyone have any info or feedba

  • EBP-SUS

    Hi, Can we have EBP and SUS enabled on the same SRM server. Please let me know how to do it. Regards, Manu

  • A Linux distro that teaches the user as he/she navigates?

    Hi, I was wondering about this idea I had about making a Linux distro that teaches users how to use the desktop while teaching them the fundamentals of Linux, like installing packages. It would a noob distro. So I wanna get ideas laid out and see wha

  • HP Webcam for Pavilion dv6-1216er dont save settings after reboot

    I have some problem from begining use my laptop. Still have this problem after reboot (or but it sleep) i have to put setting on webcam again. I reinstalled everything but this all dont help.

  • No Screen Update of the video

    Hi When I play the video that is placed in the timeline of the project, it plays all well, but when I use my arrow keys a to go frame by frame it refuses to update the video. Never had this before and have no clue where to find the error. Love some h