JFileChooser default behaviour

Hi all,
In my app, I'm using the filechooser for different aims such as open, export, save as...
The problem is that each time it is open, by default it shows as selected file the last one that was used. The expected behaviout I want is to have the selected file field empty.
I've been playing around with "setselectedfile" and some more things, but without getting the right solution.
Can anybody help me?
thanks

I try override the JTable editingCanceled() ==> does not work.
I try the addCellEditorListener( CellEditorListener l ) ==> does not work.
Finally, I try the addKeyListener ==> it works.
Here is a quick demo. program:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.event.*;
import javax.swing.table.*;
public class Test {
public static void main(String[] args){
JFrame f = new JFrame();
String[] colName = {"a", "b"};
String[][] rowData = {{"1", "2"}, {"3", "4"}};
JTable table = new JTable(rowData, colName);
JTextField t = new JTextField(10);
t.setBackground(Color.red);
t.addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
// do what ever you want ex. un-lock table
System.out.println("ESCAPE");
DefaultCellEditor editor = new DefaultCellEditor(t);
TableColumnModel colModel = table.getColumnModel();
for (int i = colModel.getColumnCount()-1; i >= 0; i--) {
colModel.getColumn(i).setCellEditor(editor);
f.setContentPane(new JScrollPane(table));
f.pack();
f.setVisible(true);

Similar Messages

  • How can I use terminal to make links open in same window the default behaviour, as it was in Safari 5.0, How can I use terminal to make links open in same window the default behaviour, as it was in Safari 5.0

    In Lion, the default of pressing a link on a web page, is to open the page in a new tab. In itself, I do like this because this is what I did for 19 out of any 20 links, which I command+clicked in previous Safari versions.
    However, there is a snag to this behaviour. Most (all?) secure site do not like links to be opened in a new tab. For example, when I am doing Web banking, The the linked page doesn’t open in new tab. Rather I get a page telling me my login session is expired. Probably a security measure instituted by my bank.
    I since found out, that a command-click opens lings in the same window. Theoretically that solves the problem, if I would think about this all the time. I don't. Old habits die slowly.
    Is there a terminal command to make links open in same window the default behaviour, as it was in Safari 5.0.

    Hi Eric,
    I got it figured out today, basically you have to load the Parallel Flash Loader first into FPGA ram. It is a special .sof file (pfl_epXXXX.sof) based on your FPGA. Code is actually pretty straight forward, using the Sys Exec VI. Use the windows based programmer to generate the .cdf file that identifies your FPGA, attached Flash and .pof file .
    Syntax was odd going into Sys Exec. Note the extra "C" in in front of the "quartus_prm.exe" I have no idea why that was needed, but I was getting an error until I just happened to put it in there (Blind Luck :-))
    I used a 2 element array going into a four loop
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG -o P;pfl_epXXXX.sof
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG S_FPGA.cdf
    Defining the working director C:\altera\12.1sp1\qprogrammer\bin
    And added match string with "Successfully performed operation" on the output in the loop to make sure everything loaded correctly then adding the array to give me a overall P/F
    To anyone doing this same thing Altera's documentation is poor to say the least. It took most of a week to figure this out Not allowed to upload code, so anyone wanting details just post here and I will try to help. This was painful, with lots of lessons learned.
    Thanks for the interest though
    Best regards John

  • Default behaviour of the Escape key while editing a cell in JTable??

    Hi all,
    i have a Jtable which get its data from an own model object which extends DefaultTableModel.
    If i overwrite the isCellEditable(row, col) method within the tablemodel object and set a specific column to editable, then i notice while editing a cell in that column that the default behaviour of the Escape key is that independet from what you have entered before in to the cell the editing stops and the cell gets the value it had before editing.
    This is the case for me even if i apply a custom editor to a column (one that extends DefaultCellEditor). It is just a JTextField that limits the number of digits a user can enter. Everything works fine. If the user edits the cell and presses ENTER or the "down arrow key" i can check what he has entered with the help of the getCellEditorValue() method. But if the user hits the ESC key after editing a cell this method is not invoked!!!
    My question is :
    is there any way to detect that the user cancels editing with the ESC-key.
    this is very important for me because if the user goes editing the cell i lock the related record in the database, if i cannot detect this it is locked till the application terminates.
    Thanks for any help in advance

    I try override the JTable editingCanceled() ==> does not work.
    I try the addCellEditorListener( CellEditorListener l ) ==> does not work.
    Finally, I try the addKeyListener ==> it works.
    Here is a quick demo. program:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    public class Test {
    public static void main(String[] args){
    JFrame f = new JFrame();
    String[] colName = {"a", "b"};
    String[][] rowData = {{"1", "2"}, {"3", "4"}};
    JTable table = new JTable(rowData, colName);
    JTextField t = new JTextField(10);
    t.setBackground(Color.red);
    t.addKeyListener(new KeyAdapter() {
    public void keyPressed(KeyEvent e) {
    if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
    // do what ever you want ex. un-lock table
    System.out.println("ESCAPE");
    DefaultCellEditor editor = new DefaultCellEditor(t);
    TableColumnModel colModel = table.getColumnModel();
    for (int i = colModel.getColumnCount()-1; i >= 0; i--) {
    colModel.getColumn(i).setCellEditor(editor);
    f.setContentPane(new JScrollPane(table));
    f.pack();
    f.setVisible(true);

  • MP-BGP Router Reflectot (RR) Default Behaviour

    Hi All,
    I have a 7206VXR configured like RR for MPBGP (Afi/safi 1/128 L3VPN rfc 2547Bis).
    My RR is configured with different peer-group towards its clients (PE).
    I'd like to konw what is the RR's default behaviour when it receives an updata message type 'withdrawal' by its client.
    I've observed that:
    - When a PE send its update (withdrawal), it receive back by RR all its bgp table...with a lot NLRI that my PE doesn't need..Is it a normal behaviour?
    - When a PE send its update (withdrawal), it receives back by RR its own update..I think that this is a normal behaviuor since he is configured within a peer-group on RR. Is it correct?
    Many thanks in advance for your support.
    Gianluca

    Hello I'm trying to configure a lab with 4 7600-sup32-3b 12.2(2)-33.SRC. 2 of them as P routers and the rest as PE. P's are Route Reflector and PE are route reflector clients. If I create the same VRF in both PE routes are note not advertised between PEs.(show ip route vrf lab). Please could you give me a configuration example or a link where I could take a look.
    Thanks in advance. Santiago.

  • Default behaviour based upon ACCTYPE

    Hello,
    I am a new BPC user and so, I would appreciate any help provided. I have done a lot of web search on this and aside from a couple of articles on SDN, I have not managed to find anything on this. I have previously posted a question on a similar topic but this is more of a question related to BPC's capabilities, rather than asking for a solution to a problem.
    Some threads on SDN are suggesting that the default behaviour for BPC (Financial Consolidation) 7.5 NW is to store the data using the accounting convention (i.e., negative for INC and positive for EXP). However, when reports are generated using the same data (using EVDRE e.g.), the sign is automatically flipped (i.e., INC accounts are automatically showed as positive while EXP are shown as negative).
    Is this correct? If so, is any reference available to any SAP published documentation on this?
    Many thanks in advance.

    Hi,
    I dont know whether there are any documents around this topic or not. But let me try to explain this a bit.
    The flipping of signs is done twice - one at the time of sending the data to the database and second at the time of fetching the data from the database. Let me give you a very simple example. Lets say, we are posting the below records:
    Revenue (ACCTYPE = INC): 1000
    Expenses (ACCTYPE = EXP): 400
    Theoritically, the profit should be 600. However, by design, we usually keep the profit as the parent of revenue and expenses, which means that profit will be 1400 (which is wrong). So, we change the signs. After posting the data to the database, the data looks like:
    Revenue (ACCTYPE = INC): -1000
    Expenses (ACCTYPE = EXP): 400
    Now, the profit becomes -600.
    When we fetch the data, the data should look like the original values. So, we again flip the signs. So, the data looks like:
    Revenue (ACCTYPE = INC): 1000
    Expenses (ACCTYPE = EXP): 400
    Which is exactly what we had entered initially. Now, the concern is the profit. The profit is -600 as per the calculation. However, the actual profit should be 600. So, we keep the ACCTYPE of profit as INC.
    Hope this gives you the idea.

  • JAXB Default behaviour for Boolean

    Is there any way to modify JAXB default behaviour for boolean types when marshalling?
    The default behaviour for this type is to output "true" or "false", is there anyway of outputting "1" or "0"
    Thanks in advance

    29-Aug-2006
    01:43 AM
    steve_p wrote:
    Hi Edward,
    I've not suffered this issue myself but I have read on other forums that some people are also having the same problem as you.
    http://www.allaboutsymbian.com/forum/showthread.php?t=50226
    S.
    Thanks for the feedback - I'm not 100% sure, but I think it happened once I did a PC Suite backup as well - oh well ... not too much of a show stopper - I guess they'll hopefully fix this in the next release of the firmware
    Regards,
    Edward

  • Dos2unix has the wrong default behaviour

    The standard dos2unix package extra/hd2u has the wrong default behaviour - calling it on a file that already has unix line endings flips it to dos. Also, it doesn't install a unix2dos executable at all.
    I've made an upstream request for the author to fix this, but if he decides not to, would it be possible for arch to have postinstall scripts that move the main executable out of the path, and set up dos2unix and unix2dos wrappers that call it with -U and -D respectively? This would keep in line with the expected behaviour of these commands.

    Hello Nolan,
    It is difficult to debug this code without seeing the actual
    XML files. An easy way to see quickly why your conditions are not
    evaluated the way you want is to move them directly in the visible
    part of the option. Then you can see the actual values at the
    runtime and the reasons the expressions evaluated the way they did.
    For example if you have this option:
    <option
    spry:if="'{dswafer_fab_process::p10_wafer_fab_process_rev_status_fk}'
    == '1'" selected="selected" value="1">NEW</option>
    you can quickly debug it like this:
    <option
    spry:if="'{dswafer_fab_process::p10_wafer_fab_process_rev_status_fk}'
    == '1'" selected="selected" value="1">NEW
    '{dswafer_fab_process::p10_wafer_fab_process_rev_status_fk}' ==
    '1'</option>
    Regards,
    Cristian

  • Folder Merge - Default behaviour when pasting a folder?

    Hi,
    I've just been playing around with a student copy of Server 2012, trying to catchup on the changes (after taking a few years out of working in IT to study a degree).
    One thing I've noticed is that if I copy a folder on top of another folder the default behaviour is to merge to two folders without asking for confirmation (I'm sure this was never the case on any other version of Windows??? Actually scrap that,
    I just tried it with Windows 8 and was surprised to find out it happens on W8 too, although it doesn't happen on Windows 7!). I'm 99% sure previous server builds didn't do this (unfortunately I don't have one handy to test it).
    To give an example of the issue:
    Say I have C:/files
    I create a new folder C:/files/docs
    A few months down the line my "/files" folder has grown massive (at least 640K! I know, I know. Urban myth! Bite me!).. and now contains hundreds of sub-folders, I've totally forgotten that it contains a "/docs" folder!
    Now I have another "/docs" folder in another directory which would like to store in "/files" so I cut and paste it and..... in previous versions of windows I would have got something like:
    "The Destination already contains a folder called "docs" (...) Do you still want to merge this folder?"
    To which I answer Yes/No/(All). Now, in the current Window versions, the two folders just "merge" together (I'm not even sure "merge" is the right term, as the destination folder keeps the permissions it already had, ignoring
    any on the folder you are pasting). Now, I'm not dealing with sensitive information, but I can imagine scenarios where this might not be desirable behaviour.
    Unless the two folders contain a file with the same name (in which case you do get a dialogue, asking if you want to overwrite the file), you don't even get a warning that there is already a folder with that name (with different permissions) in
    the folder you are pasting into!
    Is there a setting? policy? registry hack? anything? which returns to pre-windows 8/server 2012 way of asking if you're sure you want to merge folders? 
    TL:DR version. I want to bring back the "The Destination already contains a folder called "<whatever>" (...) Do you still want to merge this folder?" dialogue!
    Thanks in Advance.
    ZeB

    Hi,
    As you said it is changed since Windows Server 2012/8.
    However you can change it back - go to Folder Options, in View tab please uncheck "Hide folder merge conflicts".
    If you have any feedback on our support, please send to [email protected]

  • Office WebApps Open in Client Default Behaviour

    I have an issue with my SharePoint farm that pops up intermittently with default open behaviour.
    We have around 20 site collections and 6000 users.
    Office WebApps in installed in our farm, however the default on all sites is set so that documents open in the client application (Word, Excel, etc)
    Even though this is set, we have a few users who still complain that the web client opens the document by default.
    I'm aware this can be caused by using the 64-bit version of IE instead of the the 32-bit version. But in most cases users are actually using the 32-bit version.

    Are your users using the 64bit version of Office? The Office integration features will not work with 64 bit anything.
    For the users with the issues, check their permissions and Permission Levels to see if they have the "Open Items : View the source of documents with server-side file handlers" permission.
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • Changing file clicking default behaviour for all users

    Is there a way to change the default file clicking behaviour for all users? Each user can do it himself by going via the username menu ("Personal Preferences", "When clicking on a file...") but I would prefer to set it for all users to a value that is different from the default.

    Hi Ganesh,
    Can u pl post how you solved this.
    Regards,
    Reema.

  • JFileChooser , default details files view

    I have a FileChooser window. When I open the FileChooser, by default the view of the files is "List". How can a change to make by default "Details"?
    Thanks in advance.

    doesn't appear to be a method for it - perhaps this might do
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Testing
      public void buildGUI()
        JFrame f = new JFrame();
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JFileChooser  fc = new JFileChooser(".");
        showDetailsView(fc.getComponents());
        fc.showOpenDialog(f);
        f.setVisible(true);
      public void showDetailsView(Component[] comp)
        for(int x = 0; x < comp.length; x++)
          if(comp[x] instanceof JToggleButton)
            if(((JToggleButton)comp[x]).getIcon().equals(UIManager.getIcon("FileChooser.detailsViewIcon")))
              ((JToggleButton)comp[x]).doClick();
              return;
          if(comp[x] instanceof Container) showDetailsView(((Container)comp[x]).getComponents());
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }

  • How to change the default behaviour of View Object in oracle adf

    Hi,
    I have created a view object from an entity object and placed it as a table with multiple lines on my page.
    When I run my page, by default, it loads all the rows based on the sql in the VO.
    My requirement is when I load my page, I don't want to return any data in that table.
    I am using JDeveloper 11.1.2.4.
    Please can you advise how can I achieve this functionality?
    thanks
    Muhammad

    Hi Shay,
    I've used  the refreshCondition #{bindings.Sku.inputValue ne null} as per your suggestion but getting below error
    <RichExceptionHandler> <_logUnhandledException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    java.lang.NullPointerException
        at oracle.adf.model.binding.DCExecutableBinding.refreshMasters(DCExecutableBinding.java:265)
        at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:340)
        at oracle.jbo.uicli.binding.JUCtrlHierBinding.getRootNodeBinding(JUCtrlHierBinding.java:90)
        at oracle.jbo.uicli.binding.JUCtrlHierBinding$1JUCtrlHierHintsMap.internalGet(JUCtrlHierBinding.java:210)
        at oracle.jbo.common.JboAbstractMap.get(JboAbstractMap.java:54)
        at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$1DecoratedHintsMap.internalGet(FacesCtrlHierBinding.java:305)
        at oracle.jbo.common.JboAbstractMap.get(JboAbstractMap.java:54)
        at javax.el.MapELResolver.getValue(MapELResolver.java:164)
        at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
        at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
        at com.sun.el.parser.AstValue.getValue(Unknown Source)
        at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
        at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:73)
        at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.getProperty(BaseColumnRenderer.java:1195)
        at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.layoutHeader(BaseColumnRenderer.java:643)
        at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.encodeAll(BaseColumnRenderer.java:152)
        at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
        at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
        at oracle.adfinternal.view.faces.renderkit.rich.table.BaseTableRenderer.layoutColumnHeader(BaseTableRenderer.java:1197)
        at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:636)
        at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
        at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:617)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
        at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:447)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$1500(PanelGroupLayoutRenderer.java:30)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:734)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:637)
        at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:187)
        at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:318)
        at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:283)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:360)
        at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
        at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeFormItem(PanelFormLayoutRenderer.java:1127)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.access$100(PanelFormLayoutRenderer.java:50)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1604)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1523)
        at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:187)
        at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:318)
        at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:283)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeChildren(PanelFormLayoutRenderer.java:420)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.encodeAll(PanelFormLayoutRenderer.java:208)
        at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
        at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:447)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$1500(PanelGroupLayoutRenderer.java:30)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:734)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:637)
        at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:187)
        at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:318)
        at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:283)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:360)
        at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
        at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
        at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:2194)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._renderPane(PanelSplitterRenderer.java:1599)
        at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer.encodeAll(PanelSplitterRenderer.java:279)
        at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
        at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
        at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)
        at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:274)
        at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
        at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
        at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)
        at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1275)
        at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
        at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1681)
        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1677)
        at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:91)
        at com.sun.faces.application.view.JspViewHandlingStrategy.doRenderView(JspViewHandlingStrategy.java:431)
        at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:233)
        at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:350)
        at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
        at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
        at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:165)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1035)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:342)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:236)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:509)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
        at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
        at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
        at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
        at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    any ideas please?

  • JTable :Setting the cell renderer overrides default behaviour

    I have a class renderer as shown below.
    I would like to apply this renderer to my cells in my JTable (see below):
    When I use "setDefaultRenderer" I get the behaviour I expect. Fx. that number columns a right aligned, dates show as dates etc. However when I use "setCellRenderer" it eems that the functionality of the superclass is overridden ??. Any explanation - anyone ?
          TableColumnModel  tcModel;
          JTable table
          tcModel = table.getColumnModel();
          Enumeration       enum;
          enum = tcModel.getColumns();
          /* This works */     
          table.setDefaultRenderer(Object.class,new renderer()); //The renderer works for all objects.
          while ( enum.hasMoreElements() )
             tColumn = (TableColumn)enum.nextElement();
             /* But this does not !!? */
             /* tColumn.setCellRenderer(new renderer());   */
    class renderer extends DefaultTableCellRenderer
       public Component getTableCellRendererComponent(
          JTable _table,
          Object _value,
          boolean _isSelected,
          boolean _hasFocus,
          int _row, int _col)
       Component cell = super.getTableCellRendererComponent(_table,_value,_isSelected,_hasFocus,_row,_col);
       return cell ;
    }

    I have a class renderer as shown below.
    I would like to apply this renderer to my cells in my JTable (see below):
    When I use "setDefaultRenderer" I get the behaviour I expect. Fx. that number columns a right aligned, dates show as dates etc. However when I use "setCellRenderer" it eems that the functionality of the superclass is overridden ??. Any explanation - anyone ?
          TableColumnModel  tcModel;
          JTable table
          tcModel = table.getColumnModel();
          Enumeration       enum;
          enum = tcModel.getColumns();
          /* This works */     
          table.setDefaultRenderer(Object.class,new renderer()); //The renderer works for all objects.
          while ( enum.hasMoreElements() )
             tColumn = (TableColumn)enum.nextElement();
             /* But this does not !!? */
             /* tColumn.setCellRenderer(new renderer());   */
    class renderer extends DefaultTableCellRenderer
       public Component getTableCellRendererComponent(
          JTable _table,
          Object _value,
          boolean _isSelected,
          boolean _hasFocus,
          int _row, int _col)
       Component cell = super.getTableCellRendererComponent(_table,_value,_isSelected,_hasFocus,_row,_col);
       return cell ;
    }

  • Change to the default behaviour for Birds Eye view please

    At the moment the way Birds Eye View (pressing a key to zoom the image to full screen) is not very clever: An example - if your cursor is at the left of the screen it will first of all zoom out, with the "actual area" box located on the left, roughly where your cursor happened to be . And then on releasing the key, it will zoom to a completely new place in the image, based on where your cursor happened to be when you activated the shortcut. In practice this is almost random behavior, because while you are retouching in close, your cursor can be almost anywhere.
    Now I know that its possible very when you are zoomed out to relocate the box, but its a pain to have to do this each time, when its not required.
    What it should do, in my humble opinion - is by default it should keep what I'm calling the "area box" located in the currently zoomed area of the screen, so zooming in and out with the key will by default always take you back to where you were.
    For those of use doing high detail work, who like to quickly see a full screen, this change in behavior would make it possible to use Birds eye view more easily instead of zooming in and out in other ways.
    Of course a preference could be provided in case anyone at all actually likes the annoying CS4 default

    depend of what you want exactly you can use
    PositionInterpolator if you just need a translation
    here is a example that should work
    BoundingSphere bounds = new BoundingSphere();
    TransformGroup vpTrans= myWorld.getViewingPlatform().getViewPlatformTransform();
    // create Alpha
    Alpha alpha = new Alpha (-1,Alpha.INCREASING_ENABLE + Alpha.DECREASING_ENABLE,
    0, 0, 2000, 0, 1000, 2000, 0, 1000);
    // create position interpolator
    PositionInterpolator posInt = new PositionInterpolator (alpha, vpTrans);
    posInt.setSchedulingBounds(bounds);
    posInt.setStartPosition(-1.0f);
    another way his to use spline the best example of this is in the demo that come with java3d at
    your_JVM/demo/java3d/SplineAnim/SplineAnim.java
    the only thing you have to change his to specify the good transformGroup wich is vpTrans
    hope it help
    cyril

  • Is it possible to Override Flex Default behaviour of loading Images on mouse scroll over ??

    Hi ,
    I am displaying Images on to a DataGrid .
    This works fine .
    My question is that  ,  Flex 3 is not loading all the Images at once , its loading Sometimes on mouse scroll down on a
    browser and sometimes on Mouse down .
    I dont want to have this behaviour , is it possible to override such behaviour and load all the Images at once ??

    Hi,
    What has been going wrong with your post ? You can use external USB sound card for your laptop. Here are few of them:
      http://www.shopbot.com.au/external-sound-card-usb/​price/australia/582295
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Maybe you are looking for