Focus traversal of a component and its descendants
We have a certain panel in our application which is receiving focus, and we don't want it to receive focus. I can call setFocusable(false) on every button in that panel, and that works... but it's incredibly cumbersome.
Unfortunately, calling setFocusable(false) on the panel itself doesn't stop the focus manager finding the children.
Is there a "proper" way to do this?
Also while I'm here, is there a "proper" way to make the Tab key exit a JTable when pressed? There was a previous post about overriding the action on the Tab key, but I'm not impressed by that option at present as it may have wider effects than the table.
I have a need to produce a list of EBS compnents (Oracle Financial 11i) for audit purpose. We are using Oracle EBS 11i Oracle financial. Is there a way to get this kind of information from the system?Please see these docs.
How to check if certain Oracle Applications product/module is implemented? [ID 443699.1]
How to Establish if a Product is Installed in e-Business Suite 11i [ID 420648.1]
Thanks,
Hussein
Similar Messages
-
I'm creating a SSRS report using SSAS cube as a source.
When creating a dataset for the report, I'm having trouble with MDX to select a specific dimension member and its descendants from parent child dimension where dimension member names can be same in dimension hierarchy.
Lets say for example that I have an account dimension where,
In level 02 I have company ID:s 101, 102, 103 and so on...
In level 03 I have Balance sheet
In level 04 I have some account groups, Assets, Liabilities and so on... and In level 05 I have individual accounts
How can I select for example company 102:s Assets from level 04 and its descendants?
Normally in adventure works I would do this if I've wanted Current Assets and its descendants:
SELECT NON EMPTY { [Measures].[Amount] } ON COLUMNS, NON EMPTY
{ (DESCENDANTS([Account].[Accounts].[Account Level 03].[Current Assets]) ) } ON ROWS
FROM [Adventure Works]
But in my Account dimension at level 04 I have Assets member as many times as I have companies in level 02.
TuomoHi Tuomo Helminen,
To this requirement of yours, I would recommend you use Cascading Parameters in Reporting services, you can refer to this FAQ How do I create cascading parameters when using cube database in Reporting Services at this link
http://blogs.msdn.com/b/sqlforum/archive/2011/04/11/forum-faq-how-do-i-create-cascading-parameters-when-using-cube-database-in-reporting-services.aspx
Thanks,
Challen Fu
TechNet
Subscriber Supportinforum
If you have any feedback on our support, please [email protected]
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
Yahoo AutoComplete Component and Its ItemRenderer
Hello Guys
I'm trying to use a customized item renderer on YahooAutoComplete but vain. Please help me
This is the property for placing custom item renderer.
http://developer.yahoo.com/flash/astra-flex/classreference/com/yahoo/astra/mx/managers/Aut oCompleteManager.html#popUpRenderer
I made an mxml component based on canvas and add its address to there, but when i run it, it gives following error
Type Coercion failed: cannot convert compoents.oneD::inviteListDisplay@9083c29 to mx.controls.listClasses.ListBase.
Please Guide what should i do with my canvas based components to support yahoo autocomplete manager.
Thanks in advanceHere is some code from Yahoo that might help:
http://developer.yahoo.com/flash/astra-flex/autocompletemanager/
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:yahoo="http://www.yahoo.com/astra/2006/mxml">
<yahoo:AutoCompleteManager
id="autoCompleteMgr"
targets="{[textInput1, textInput2, textInput3]}"
shareData="true"
autoSave="true"
/>
<mx:Label x="40" y="37" text="Full Name"/>
<mx:TextInput id="textInput1" left="40" top="53"/>
<mx:Label x="40" y="103" text="Phone Number"/>
<mx:TextInput id="textInput2" left="40" top="120"/>
<mx:Label x="40" y="170" text="Email Address"/>
<mx:TextInput id="textInput3" left="40" top="187"/>
</mx:Application> -
Is there any way to reference a component and its properties in a variable ?
I have two custom components. Only one ever displays depending on the currentState value.
<componants:wrUnapproved
itemCreationPolicy="immediate"
excludeFrom="SQLSERVER"
id="wrUnapprovedComp"
wrIdLv="{parentApplication.wrId}"
userTypeCdLv="{parentApplication.userTypeCd}"
width="100%"
height="354"
y="25"/>
<componants:wrUnapprovedSqlServer
itemCreationPolicy="immediate"
includeIn="SQLSERVER"
id="wrUnapprovedCompSs"
wrIdLv="{parentApplication.wrId}"
userTypeCdLv="{parentApplication.userTypeCd}"
width="100%"
height="354"
y="25"/>
Now I want to refrence whichever one is active and dynamically reference it
Like
myComponanet.init();
where myComponanet is either wrUnapprovedComp or wrUnapprovedCompSsFound my own answer
var pp:Object = wrUnapprovedComp; -
Hi ,
Where can we see the list of BOM header materials in which a given material is a component.
Ex:- If component 'XYZ' is of material type - ROH or HALB. If the component 'XYZ' is used in different BOMs. Where can we see these list of BOMs in which component 'XYZ' is used?.
Thanks in advance.Dear
Goto CS15/CS14-BOM Where used List .
Execute CS15-Here if you are useing various BOM , then mark the Used in option ( Material , WBS, Order , Documents BOM) and Mark Type of Where used list as Direct and then Goto next page ( hit the Arrow ) -Give the Required qty , Plant Code , Usage -PRD means 1 an Universal means 3 from selection menu and finally hit Execute .It will list down all the qty , header items and relevent information as per your requirement .
Regards
JH -
trying to remove itunes and its component get this"the feature you are trying to use is on a network resource that is unavailable" click ok to try again or enter an alternate path to a folder containing the installation package "itunes.msi'
tiburon77 wrote:
trying to remove itunes and its component get this"the feature you are trying to use is on a network resource that is unavailable" click ok to try again or enter an alternate path to a folder containing the installation package "itunes.msi'
Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove".
Quit out of CleanUp, restart the PC and try installing iTunes again. Does the install go through properly now?
(If you do find a clean download site for the correct version of CleanUp, please don't tell me where it is. Without wishing to sound paranoid (although I grant it does sound paranoid), there is a non-zero chance that posting links to download locations for the utility here at Discussions leads to that download location being shut down.) -
I need urgently to know how use a component which allows me to fix an AC voltage and its current.
I can't use a resistance and an AC current in parallele for my application..
Thanks a lot you will be very helpful !In general the way to fix both voltage and current requires a source and an impedance, but you say you do not want that solution.
Please tell us exactly what your application is and why a current source in parallel with a resistance is unacceptable.
Lynn -
I just bought a 2013 late model Mac Book Pro Retina and am wondering if it is worth installing windows through boot camp.
If I install the windows component in order to run an exe file and its component "Declans Korean Flash Cards"... will it make my mac suseptible to viruses overall due to having a windows component? also will it make my mac slower as wellIf you are only going to use one or two window only programs then I wouldn't waste the space. Try WinonX it allows you to install exe. Files on Mac without installing windows.
-
I love AI love Apple. I own an iMac, a MacbookPro, an iPad, and an iPhone. I’ve been a loyal Mac user since the ‘80’s. But, please, when are you going to do something about iCal and its Reminders component? Attaching documents is clumsy. If you’re on iCloud, as I am, repeating events is impossible. The ability to copy text or graphics into either events or Reminders doesn’t really exist. This is an easy fix. Why not get it done?
Maybe things will improve this summer,
http://www.apple.com/macosx/mountain-lion/features.html
Regards,
Captfred -
How to get an event both in custom component and into its instance
I have a custom component that extends a Jtree
I want to know when a node is clicked both , into my component and after into the component sited into Jpanel
now, I can only detect it into the component, but I dont know how to detect it at the component I have in my Jpanel
I have 'addTreeSelectionListener' in both places ...
xxxxx.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {
public void valueChanged(javax.swing.event.TreeSelectionEvent e) { .....
Any help ?
Thankstonnot wrote:
Thank you.
I think that a good answer can be ' Revise your code, because there must be a problem' Well, that's the life of a programmer. If you want to post an SSCCE, I'm sure somebody can help if you get stuck.
And ...
Why are you extending JTree? I'd bet you shouldn't be.Why not ? ....
Why SUN develop the 'extends' functionality ? You should use extends if you're changing the behavior of an existing class. An example of this is extending JPanel and overriding the paintComponent() method to do some custom painting.
You should not use extends if you just need an instance of an existing class. An example of this is extending JFrame instead of simply creating a JFrame instance.
Without seeing your code, I can't be sure you're misusing extends. But many people do.
Here's an example.
Bad:
public class MyProgram extends JFrame{
public MyProgram(){
setSize(200, 200);
setVisible(true);
public static void main(String [] args){
new MyProgram();
}Better:
public class MyProgram{
public MyProgram(){
JFrame frame = new JFrame();
frame.setSize(200, 200);
frame.setVisible(true);
public static void main(String [] args){
new MyProgram();
} -
Error Message "There is difference between document total and its component
Error message number 439-138. Is there a sight I could look up error codes?
There is difference between document total and its componentsHi Deborah ,
Please look at this thread..
Error when adding AP invoice
So far it looks like a bug
You can also search in sap service market --support --sap notes
there are plenty of threads in forum .....
Hope this helps
Bishal -
How to set focus order of multiple Component in a Frame
I have created a Frame with contain some Label, Textfield, Choice and Buttons
How do set focus order on these Componentswrite an implementation of
import java.awt.*;
public class PanelFocusTraversalPolicy extends FocusTraversalPolicy
public Component getComponentAfter(Container container, Component component)
if(component.equals(cmp1))
return cmp2;
if(component.equals(cmp2))
return cmp3;
return cmp1;
public Component getComponentBefore(Container container, Component component)
//implentation of method
public Component getDefaultComponent(Container container)
return cmp1;
public Component getLastComponent(Container container)
return cmp3;
public Component getFirstComponent(Container container)
return cmp1;
public PanelFocusTraversalPolicy()
}and set the focus traversal of frame.
setFocusTraversalPolicy(new PanelFocusTraversalPolicy()) -
Hello,
I implemented my own focus traversal policy provider for a JPanel. It appears to be working fine except for one of my components (a JTextArea contained in a JScrollPane). If I ctrl+tab out of the JTextArea, my custom FTP is never used.
I am still new to the focus subsystem, so I am not sure how to properly debug the situation. I checked the following properties on the JScrollPane and the JTextArea:
--Focusable: True for both
--FocusCycleRootAncestor: My JPanel for both
--getFocusTraversalPolicy: null for both
--FocusCycleRoot: False for both
Since my Custom FTP is not used when tabbing out of the JTextArea, the focus is sent to the wrong component. This is not the only JTextArea in the JPanel (all of them are in JScrollPanes), but it is the only one that with this problem.
Is there a way for me to detect which FTP is being used? Any ideas why my FTP is not being used?
AaronHello,
I implemented my own focus traversal policy provider for a JPanel. It appears to be working fine except for one of my components (a JTextArea contained in a JScrollPane). If I ctrl+tab out of the JTextArea, my custom FTP is never used.
I am still new to the focus subsystem, so I am not sure how to properly debug the situation. I checked the following properties on the JScrollPane and the JTextArea:
--Focusable: True for both
--FocusCycleRootAncestor: My JPanel for both
--getFocusTraversalPolicy: null for both
--FocusCycleRoot: False for both
Since my Custom FTP is not used when tabbing out of the JTextArea, the focus is sent to the wrong component. This is not the only JTextArea in the JPanel (all of them are in JScrollPanes), but it is the only one that with this problem.
Is there a way for me to detect which FTP is being used? Any ideas why my FTP is not being used?
Aaron -
Setting a JTree renderer breaks the focus traversal order
Hello,
I am not sure what's wrong, but when I set a customize JTree renderer it breaks the focus traversal order of my UI. Can someone tell me what's wrong and also how to prevent it from changing the order of my components?
For instance, if I have component order 1, 2, 3, 4, 5 to begin with and after I call JTree.setCellRenderer(new SomeRenderer()), the order would change to something like this 1, 2, 4, 5, 3
To give you an overview of what I am creating, I am customizing a UI that will be plug into JFileChooser to replace the default UI. I know I can create my own FocusTraversalPolicy, but the thing is that I don't know some of my components ahead of time. As long as I can prevent the order change, I think it would be fixed.
Regards,
SootTry creating a Short, Self-Contained, Compileable, Executable
program which has this problem. Right now it would take a
mind-reader to solve your problem. -
Changing the application wide default focus traversal policy
Hi,
I have a Swing application built using JDK1.3 where there lots of screens (frames, dialogs with complex screens - panels, tables, tabbed panes etc), in some screens layouts have been used and in other screens instead of any layout, absolute positions and sizes of the controls have been specified.
In some screens setNextFocusableComponent() methods for some components have been called at some other places default focus traversal is used. (which I think is the order in which the components are placed and their postions etc). Focus traversal in each screen works fine.
Now I have to migrate to JDK1.4. Problem now is that after migrating to JDK1.4.2, focus traversal has become a headache. In some screens there is no focus traversal and in some there is it is not what I wanted.
So I thought to replace applicaiton wide default focus traversal policy and I did the following:
///////// Replace default focus traversal policy
java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager().setDefaultFocusTraversalPolicy(new java.awt.ContainerOrderFocusTraversalPolicy());
But there is no change in the behaviour.
Then I tried following:
///////// Replace default focus traversal policy
java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager().setDefaultFocusTraversalPolicy(new java.awt.DefaultFocusTraversalPolicy());
I did all this in the main() method of the application before anything else just to ensure that all the components get added after this policy has been set. But no luck.
Does someone has any idea what is the problem here ? I do not want to define my own focus traversal policy for each screen that I use (because thats lot of codes).
Thanksnot that hard if you only have the one focus cycle ( > 1 cycle and it gets a bit harder, sometimes stranger)
import javax.swing.*;
import java.awt.*;
class Testing
int focusNumber = 0;
public void buildGUI()
JTextField[] tf = new JTextField[10];
JPanel p = new JPanel(new GridLayout(5,2));
for(int x = 0, y = tf.length; x < y; x++)
tf[x] = new JTextField(5);
p.add(tf[x]);
final JTextField[] focusList = new JTextField[]{tf[1],tf[0],tf[3],tf[2],tf[5],tf[4],tf[7],tf[6],tf[9],tf[8]};
JFrame f = new JFrame();
f.setFocusTraversalPolicy(new FocusTraversalPolicy(){
public Component getComponentAfter(Container focusCycleRoot,Component aComponent)
focusNumber = (focusNumber+1) % focusList.length;
return focusList[focusNumber];
public Component getComponentBefore(Container focusCycleRoot,Component aComponent)
focusNumber = (focusList.length+focusNumber-1) % focusList.length;
return focusList[focusNumber];
public Component getDefaultComponent(Container focusCycleRoot){return focusList[0];}
public Component getLastComponent(Container focusCycleRoot){return focusList[focusList.length-1];}
public Component getFirstComponent(Container focusCycleRoot){return focusList[0];}
f.getContentPane().add(p);
f.pack();
f.setLocationRelativeTo(null);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setVisible(true);
public static void main(String[] args)
SwingUtilities.invokeLater(new Runnable(){
public void run(){
new Testing().buildGUI();
}
Maybe you are looking for
-
How to add vertical stroke to between top menu items?
I have a horizontal Spry menu bar. How to add a vertical stroke between menu top items? BUT NOT outermost left and outermost right. Only to BETWEEN top menu items. In html file I tried this: <div id="main_menu"> <ul id="MenuBar1" class="MenuBar
-
how do i move new clips spliced from a main clip to the start of the timeline without dragging them manually? trying to cut a reel of my latest work. I usually bring in the main files, grab the selections from wherever they are in the timeline,and t
-
Tomcat 4.0 vs Tomcat 4.1
Hi, This is an error using Tomcat 4.0, but not in Tomcat 4.1: <html:link href="<%=MyClass.MyFunction("Hello World")%>"> Hello </html:link> I want to switch to Tomcat 4.1 so that being able to debug jsp files in jbuilder. Thanks in advance.
-
White Scratch Marks Appear When Saving Extracted hair as GIF
Hi guys, I need your help with a problem that has been driving me up the wall. I've created a web site (my first) for my sister and it's all ready to be uploaded. But I've been held up for a while by a Photoshop problem. I've been trying to extract a
-
Premiere Pro CC 2014 and Radeon R9 295x2 issues
Just added the R9 295x2 to my system and have experienced a few issues. I installed the Catalyst 14.12 with the newest drivers and when OpenCL acceleration was enabled there was no video display at all in the source or program monitors. Is Premiere n