How to set focus on only one window?
Say, I have a main window with a button inside, and if the user presses on that button, another warning window with an OK button inside will then pop up. Now the question is how can I disallow the user from returning back to the main window unless the OK button on the pop-up window is pressed ?
What is a modal dialog? Appreciate if a simple example could be given to illustrate how it works. Thanx!
Similar Messages
-
How to set focus in the parent window after a JOptionPane pop up ?
I am not able to set the focus back to a JTextField in the parent window after poping up a JOptionpane.showMessageDialog(). I tried requestfocus(),requestFocusInWindow etc......but not working. The code is given below.
if ((encryptor.encrypt(password)).equals(configuredPasswd)) {
validPassword = true;
} else {
JOptionPane.showMessageDialog(saveUI,"The password entered is not correct.");
saveUI.getPasswdField().setText("");
saveUI.getPasswdField().requestFocus();
Sometimes the focus is coming to the JTextField.Sometimes it appears for a moment and then dissappears.Please give a solutionsee if this makes a difference
if((encryptor.encrypt(password)).equals(configuredPasswd))
validPassword = true;
else
JOptionPane.showMessageDialog(saveUI,"The password entered is not correct.");
ActionListener al = new ActionListener(){
public void actionPerformed(ActionEvent ae){
saveUI.getPasswdField().setText("");
saveUI.getPasswdField().requestFocusInWindow();}};
javax.swing.Timer timer = new javax.swing.Timer(100,al);
timer.setRepeats(false);
timer.start();
} -
How do I turn off the tab bar in FF 24 when only one window is open?
I have just updated to FF 24.0 from FF 20 with Tab Mix Plus already installed. (OSX 10.6.8) From the Firefox Preferences menu, Tabs box, I have set the "Hide the tab bar:" option to "When I have only one tab." I have also gone to the Tab Mix Plus option box and set the drop down to the same value. Unfortunately, it doesn't have the desired effect. Firefox opens to my home page with a tab at the bottom. (I prefer the tabs at the bottom and that setting still works.) With only one page open, that tab is completely unnecessary, takes up space, and just plain bugs me.
Now, here's what I have found. Once I've started Firefox, if I go to the Tab Mix Plus options box and select "Hide the tab bar: Always" and then set the option back to "When I have only one tab" I can enjoy one page without the tab bar, that is, until I've opened several tabs and then closed all but one. Then I see the tab bar stubbornly remain. An incompatibility between FF and Tab Mix Plus, perhaps. Is FF 24 not letting Tab Mix see the number of open tabs? Dunno. But I can't seem to solve it.Are you saying that the problem lies not with Firefox but with Tab Mix Plus? Tab Mix worked up through FF 20 to my knowlege. And I see from other questions that the persistant tab bar was an issue with FF 23 as well.
Please note, that setting aside the extension issue, the Firefox preference Tab option should turn off the tab option when there is only one window open without any help from addons or extensions. I have disabled Tab Mix Plus, and set the FF option correctly, but the problem remains. As I see it, FF is not working as this user expects it to and is (slightly) broken. -
How to set two radius servers one is window NPS another is cisco radius server
how to set two radius servers one is window NPS another is cisco radius server
when i try the following command, once window priority is first , i type cisco radius user name, it authenticated fail
i can not use both at the same time
radius-server host 192.168.1.3 is window NPS
radius-server host 192.168.1.1 is cisco radius
http://blog.skufel.net/2012/06/how-to-integrating-cisco-devices-access-with-microsoft-npsradius/
conf t
no aaa authentication login default line
no aaa authentication login local group radius
no aaa authorization exec default group radius if-authenticated
no aaa authorization network default group radius
no aaa accounting connection default start-stop group radius
aaa new-model
aaa group server radius IAS
server 192.168.1.1 auth-port 1812 acct-port 1813
server 192.168.1.3 auth-port 1812 acct-port 1813
aaa authentication login userAuthentication local group IAS
aaa authorization exec userAuthorization local group IAS if-authenticated
aaa authorization network userAuthorization local group IAS
aaa accounting exec default start-stop group IAS
aaa accounting system default start-stop group IAS
aaa session-id common
radius-server host 192.168.1.1 auth-port 1812 acct-port 1813
radius-server host 192.168.1.2 auth-port 1812 acct-port 1813
radius-server host 192.168.1.3 auth-port 1645 acct-port 1646
radius-server host 192.168.1.3 auth-port 1812 acct-port 1813
privilege exec level 1 show config
ip radius source-interface Gi0/1
line vty 0 4
authorization exec userAuthorization
login authentication userAuthentication
transport input telnet
line vty 5 15
authorization exec userAuthorization
login authentication userAuthentication
transport input telnet
end
conf t
aaa group server radius IAS
server 192.168.1.3 auth-port 1812 acct-port 1813
server 192.168.1.1 auth-port 1812 acct-port 1813
endThe first AAA server listed in your config will always be used unless/until it becomes unavailable. At that point the NAD would move down to the next AAA server defined on the list and use that one until it becomes unavailable and then move to third one, and so on.
If you want to use two AAA servers at the same time then you will need to put a load balancer in front of them. Then the virtual IP (vip) will be listed in the NADs vs the individual AAA servers' IPs.
I hope this helps!
Thank you for rating helpful posts! -
No tabs are showing when only one window open. How do I open a new tab?
Just upgraded to latest version. When only one window is open, no tabs show across the top. If I have two tabs open, both show across the top, but go to no tabs if I close one of them. And, the + sign is available for opening a third tab if at least two are open. The only way I can find to open a new tab when only one window is currently open is to turn off the menu, click the orange Firefox drop-down, and click New Tab. Why isn't it showing a tab, and a + tab (to open a new one) when only one tab (window) is open.
Thanks everyone for the quick responses. Cntl + T works fine, and I did move the + window to the nav bar, which also works well.
I had already gone into options and checked the box for always showing the tab bar, but it doesn't show it. I even unchecked it, saved the settings, the rechecked and saved the settings. Doesn't seems to make any difference.
I'm okay with it not showing a tab when I only have one open, just so I can get to a new one easily when I want it. -
HP Photosmart all in one C309a printing multiple copies when its set to print only one copy.
having issues with my C309a its now printing multiple copys when its set to print only one copy.it started doing this 4 days ago and its happening on both my Windows 7 64 bit computer and my Vista 32 computer that both have the latest release drivers already installed need help.HP please sort this issue out.still under warranty do i have to return it?
I am using a Motorola SBG900 Wirless Surfboard Gateway - supplied with Bigpond Cable. It is set to be using WPA security and have never had a problem with it before whilst connecting any wireless devices such as a laptop, PDA etc.
My feeling is that the wireless functionality of this printer needs some serious work before the next release. And furthermore they should never have released it the way it is as it wouldn't pass 5% of user acceptance tests if using wireless. There are too many complaints on this forum and others about similar problems to suggest that I am not by myself here. Dissapointing considering this is the feature that would be at the top of the list of most purchasing this model. It lets down what could of been a vg printer.
I agree, I think if I want to get this printer working on a wirless network, I will have to set the IP address manually. The problem is the printer refuses to connect to the router now even after it connected a few days ago with no intervention. I have powered down both the router, PC, and printer without any luck yet. I will set the IP address manually first on the printer and see how it goes, then if it connects will see if the PC/router can see the printer during the SW install procedure which has failed >10 times to date.
For now I think I will stick with Ethernet as it is no doubt much faster anyway and will try the wirless setup again in a few days when my patience grows back. Does anyone know differences in speed between USB/Wireless/Ethernet? I know this is dependant on a number of things but just interested in ball park figures here. -
In flex, How to set a value to one parameter, the parameter
defined in a cffunction in a cfc file, In the cffunction there are
much cfargument, I want set a value to one of them, such as the
cfc:
<cffunction access="remote" name="myShow" output="false"
returntype="struct">
<cfargument name="ID" type="numeric" default=0>
<cfargument name="GoodsID" type="string" default="">
<cfargument name="DestTime" type="string" default="">
<cfargument name="DestCount" type="numeric" default=1>
How I set a value to only parameter one of them , such as set
GoodsID when use mx:remoteObject.
Thanks for your helpGot maybe a solution for you, I have just tested it.
So, the idea is to use intermediate variables. Imagine Var1 and Var2 variables that you refresh with your more or less complicated queries. Then what you can do is to refresh your final variable Var3 with a query using your intermediate variables. Here is an example for Oracle:
select #Var1+#Var2 from dual
This way you can make a chain of dependent variables: Var3 is using Var2 and Var2 is using Var1.
Hope it helps.
Shamil -
How to set the path variable on Windows ME?
I want to get a friend of mine to start using java the only problem is that we both dont know how to set the path variable in Windows ME. I cant seem to find any instructions on it for ME. So if someone could please tell me how or give me a llnk to directions for Windows ME. Thanks.
Refer to the Installation Instructions for the package that you installed - I believe #5 if the instructions has the information. A link to the instructions is at the page you installed from.
-
How to set cookie value in one page and retrieve in another page using setA
How to set cookie value in one page and retrieve in another page using setActionListener?
I have tried with following code srcpage.jspx->destpage.jspx
srcpage.jspx
<af:table value="#{bindings.DepartmentsView1.collectionModel}"
var="emp" rows="#{bindings.EMPView1.rangeSize}"
first="#{bindings.EMPView1.rangeStart}"
emptyText="#{bindings.DepartmentsView1.viewable ? 'No rows yet.' : 'Access Denied.'}">
<af:column sortProperty="EmployeeName" sortable="false"
headerText="Cookie Testing">
<af:commandLink text="#{emp.EmployeeName}" action="success">
<af:setActionListener from="#{emp.EmployeeName}"
to="#{cookie}"/>
</af:commandLink>
</af:column>
</af:table>
espage.jspx
<af:outputText value="Test Cookie Value: #{cookie}"/>
,Here Test Cookie Value prints the following instead of its original String value
{JSESSIONID=javax.servlet.http.Cookie@7da288, oracle.uix=javax.servlet.http.Cookie@399f62}
I have passed employee name "Robert" to cookie in srcpage.jspx,but it prints "JSESSIONID....." instead of "Robert" in destpage.jspx
Thanks in advance
KaleeHi,
"cookie" is a reserved name. If you want to write to a session scope attribute called "cookie" then you have to call #{sessionScope.cookie}. If you want to use EL to set and read from cookies then you will have to use
#{cookie.cookieName}
Note that #{cookie} writes to and returns a map
check this: http://www.informit.com/articles/article.aspx?p=30946&seqNum=7
Frank -
How do I pull up only one specific calendar at a time on my iPhone (i.e. 'home calendar')?
Thanks!In the calendar app, press the button in the upper left, "Calendars" and turn off/on the ones you want/don't want.
-
I can use Command+W when there are multiple tabs open to close one window at a time, but not when there is only one window remaining. It's driving me crazy because I have to click on the red dot. It won't close with File > Close either. Nothing changed (that I know of) from last week to this that would cause this. It works fine in safe mode but I can't figure out what's conflicting. Also, I've tried reinstalling Firefox but that did nothing. Help?
Problem solved! It's the Evernote add-on. They updated something on November 6. I've disabled it until that quirk is fixed. Thanks.
-
Folder tree in only one windows
Hi,
is is possible to see a folder tree in only one window?
I mean, if I use the ConsumerCollectionTreeRenderer, I would see the tree divided in two frameworks. In the left framework the folder tree and in the right one the content of the selected folder.
What I really want is to see all the tree in only one framework, the tree and the framework.
Thanks in advance.
Regars.you might wanna check this thread out, they seem to have the same problem
http://discussions.apple.com/thread.jspa?threadID=719079&tstart=0
max -
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()) -
How to set different icons for different windows which is seen in the top left corner?
Hi
How to set different icons for different windows which is seen in the top left corner? I know when building exe there is a option to edit icons or add icons and that icon is default for all the windows in the project. But i want different icons for different windows which is possible in VB.
Is there any way to set icon by calling any dlls.
Thanks & Regards
Samuel J
[email protected]Hi Sam,
no problem. See the attachment.
Mike
Attachments:
TestIcon_LV85.zip 44 KB -
How to set focus on component guaranteed?
Hi All,
I want to run my swing based application on win NT OS with JDK1.5. Now i need to set focus on my JFrame window (this is my requirement) but smetime it focussed and sometime it fails. So i need some guaranteed solution or approach so that it focus on my JFrame window i tried so many methods like requestFocusInWindow(),
requestFocus(),setFocusable() etc. But my application sometime doing expected behavior and sometime fails.
Can anybody suggest me 100% guaranteed approach? I appriciate any ideas.
Regards,
Pradeep
Edited by: pradeep_dubey on Mar 17, 2009 6:52 AMBut my application sometime doing expected behavior and sometime fails.Almost certainly a concurrency issue. Are you aware of Swing's single threaded rule, and have you taken care to create and update all Swing components on the EDT?
[_Threads and Swing_|http://java.sun.com/products/jfc/tsc/articles/threads/threads1.html]
[_The Last Word in Swing Threads_|http://java.sun.com/products/jfc/tsc/articles/threads/threads3.html]
db
Maybe you are looking for
-
Adobe creative cloud sees no Internet connection
adobe creative cloud sees no Internet connection
-
HT201299 Connecting my iPad to LTE, EE say it's the wrong band width?
Hello, I have an iPad 3 with LTE connectivity. I recently bought a micro sim from EE and they said that it has 4G capability but not the right band width as they operate between 800-1200. Within settings, mobile device, LTE is not an option. At the m
-
Satellite A660 BIOS update link does not work
Hey, I got a message today (on Toshiba tempro) that the BIOS update is available. Unfortunately the link does not work. I hope someone reads this part of the administration of technical assistance.
-
Upgrading pacman behaves differently on different systems
This isn't a problem, since I haven't noticed any issues. I'm only curious to why two systems behave differently. System 1 (x86_64 locale sv_SE): Interrupts upgrade of system to specifically upgrade pacman first. System 2 (x86 locale ru_RU):
-
EMCA: invalid username/password for sys
Hi All, Recently i have restored a database from another host A to Host B. Now when i am trying to reconfiure the Dbconsole using " emca -deconfig dbcontrol db -repos drop ", for sys account its throwing 'Invalid username or password'. Password file