Which event will be fired when I after set JFrame.setVisible(false)
Experts.
I want to know which event will be fired when I after set JFrame.setVisible(false)?
Because I need to check a thread is finished it job or not.
I have checked windowClosing event, but it doesn't work.
Thanks
Francis
Oh....
Sorry, I find it will fired on componentHidden event.
Very sorry.
Similar Messages
-
How can i know which index will be used when executing the query ?
1 ) I have query in which i have 3-4 tables but there multiple index on one column .
so how can i know which index will be used when executing the query ?
2) I have a query which ia taking too much time . how can i know which table is taking too much time ?
3) Please Provide me some document of EXplain plan ?Hi Jimmy,
Consider the below example
/* Formatted on 2011/02/04 21:59 (Formatter Plus v4.8.8) */
CREATE TABLE FIRST AS
SELECT * FROM all_objects;
UPDATE FIRST
SET object_name = 'TEST'
WHERE owner != 'SCOTT';
CREATE INDEX idx_first ON FIRST(object_name);
SELECT *
FROM FIRST
WHERE object_name = 'TEST';
It has not used index
Execution Plan
Plan hash value: 2265626682
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 58678 | 7334K| 163 (4)| 00:00:02 |
|* 1 | TABLE ACCESS FULL| FIRST | 58678 | 7334K| 163 (4)| 00:00:02 |
/* Formatted on 2011/02/04 21:59 (Formatter Plus v4.8.8) */
SELECT *
FROM FIRST
WHERE object_name = 'emp';
This has used the index
Execution Plan
Plan hash value: 1184810458
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 128 | 1 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| FIRST | 1 | 128 | 1 (0)| 00:00:01 |
|* 2 | INDEX RANGE SCAN | IDX_FIRST | 1 | | 1 (0)| 00:00:01 |
From this we can come to the conclusion that, whether to use one index or not by oracle
would also depend on the data which is present in the table. This has to be this way as
we see in the bind peeking, if oracle sticks to only one plan, say only use the full table
scan, it would be a performance hit when it searches for the second query ie where object_name
='emp';
2.
If we have a query like below.
select * from emp
where upper(ename) = upper(:p_ename);
Evenif we have the index on ename column, oracle wouldn't be able to use the index, as there is a function in the predicate column. If you need oracle to use the index, we need to create a function based index as below.
Create index idx_ename on emp(upper(ename));
Regards,
Cool -
Which event will trigger first?
hi, any one can explain me the execution of at selection screen events in order.
which event will trigger first at selection-screen output or at selection-screen?Hi,
The Selection screen sequence is-
1) AT SELECTION-SCREEN OUTPUT
2) AT SELECTION-SCREEN ON VALUE REQUEST FOR <FIELD>
3) AT SELECTION-SCREEN ON HELP REQUEST FOR <FIELD>
4) AT SELECTION-SCREEN ON <SEL_OPT>
5) AT SELECTION-SCREEN ON <PARAMETER>
6) AT SELECTION-SCREEN ON BLOCK <B1>
7) AT SELECTION-SCREEN ON RADIOBUTTON GROUP1<RAD1>
8) AT SELECTION-SCREEN
9) AT SELECTION-SCREEN ON VALUE REQUEST FOR <SEL_OPT_LOW>
10) AT SELECTION-SCREEN ON HELP REQUEST FOR <SEL_OPT_LOW>
11) AT SELECTION-SCREEN ON END OF SEL_OPT
***DO REWARD IF USEFULL
REGARDS,
VIJAY -
Which form will be submitted when i click refresh button.
HI,
which form will be submitted when i click on refresh button.When you click refresh button, it will send to the server the exact same request that it sent to get to the current page.
If the previous navigation was done by a form submission, then yes, that form submission will be repeated. -
When Application_Start event will be fired
Hi All,
In ASP.Net the Application_Start event will be call for every user or will call only once for the first user who access the application.
Regards, Ravi Neelam.https://msdn.microsoft.com/en-us/library/ms178473%28v=vs.140%29.aspx
There's a paragraph that says (italics mine):
The Application_Start and Application_End methods
are special methods that do not represent HttpApplication events.
ASP.NET calls them once for the lifetime of the application domain, not for each HttpApplication instance. -
Which method will be called, when invoking home.create() ?
Hi,
In a Stateless session Bean, I want initialize some variables, whenever a bean is created or retrieved from the pool. So I used the ejbCreate() method to initialize the variables, but it is called only first time when I call the home.create(). If I call the home.create() method next time it doesn't call the ejbCreate().
Which method will be called, whenever I call home.create();.hi siva,
first of all Ejbcontainers maintain a pool of stateless sessionbeans .when you call home.create() the ejbCreate () method is definitely called and you said you are initializing some variable and may be you are trying to retrive that value after home.create() method.. when you try to retrive the value thee value may be same as you have initialized or different depending upon the no of stateless session beans in the container. you have created a bean and there is no guarantee that the same bean will be called when you invoke retrieval method..
i hope you understood.
cheers -
What event will be fired if clicked on top right button of JFrame?
HI!
I meet a issue when I developing java GUI application.
I found when I clicked on top right button x of JFrame . It fire an event windowClosing(event e)
If I clicked on JButtom and try to close this JFrame . It fire an event windowClosed(WindowEvent e)
j.setVisible(false);
j.dispose();
j.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);Is anyway I could fire same event when clicked on either +top right button x+ of JFrame or JButtom ?
amazing!?
Thanks!camickr,
NO, you fully understood my question, but also solve it already... you are correct
clicked on top right button of JFrame and close button are fired on same event.... private void this_windowClosing(WindowEvent e)
1)clicked on close button fired windowClosing event byWindowEvent windowClosing = new WindowEvent(j, WindowEvent.WINDOW_CLOSING);
Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(windowClosing);
2)clicked on top right button of JFrame it fired windowClosing eventI just want an assist to run j.dispose();, will it must fire windowClosed event? anyway to avoid this event?
May be my explain not clear! -
JXTable Horizontal scroll bar stops toggling after setting it to "false"
Hi,
I am using JXTable.
After calling table.setHorizontalScrollEnabled(false), it stops toggling from the GUI columnControl.
However, If I call table.packAll(), then toggling works fine, but in that case I am loosing customized column widths, which is not acceptable.
Any idea how to get rid off this issue.
Thanks & Regards,
Dipak Mehta
Edited by: DipakMehta on Mar 20, 2008 12:15 AMI am recording column order, column widths and horizontalScroll on/off in a file when client closes the windows.
At the time of relogin, I am applying column order and column width again to the columnModel, alongwith it I call table.setHorizontalEnabled(false) if last time client closed the window with horizontal scrollbar turned off.
This way I am getting the desired out, with proper column ordering, width setting and turned off horizontal scrollbar.
But the problem is, client is not able to turn on the horizontal scrollbar again from the GUI using columnControl. Even though checkbox rendering shows horizontalScrollBar status on/off, horizontal scrollbar dosen't reappear again.
I hope this clerifies the problem.
Thanks & Regards,
Dipak -
Which system will I get when I do R&R?
Hello everyone, I have a Lenovo T61 that came preloaded with windows Vista buisness. After a couple of years of using this, lots of junk has gathered up on my computer and rather than going through and deleting thousands of files manually I want to revert my thinkpad back to default factory settings. I understand the process of using R&R to access the computer's hidden partition and restore the computer, etc, etc. But I'm wondering if my system will boot up Windows XP instead of Vista? I have searched a lot and have found very vague answers alluding to either side. I have found very little information about this.
Has anyone gone through with this procedue who can confirm anything?
ThanksLonginus, welcome to the forum,
if, as you state, your system came preloaded with Vista running the R&R recovery will reinstall the Vista OS to the factory settings.
Hope this helps
Andy ______________________________________
Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
Deutsche Community Comunidad en Español English Community Русскоязычное Сообщество
PepperonI blog -
MouseEnter event cannot be fired when I move mouse quickly
I move mouse over the border quickly, then the event MouseEnter cannot be fired
how to resolve it?
<Window x:Class="WpfApplication1.Test1.Window2"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window2" Height="600" Width="600">
<Grid>
<Border Width="30" Height="600" BorderBrush="Red" BorderThickness="1" MouseEnter="Border_MouseEnter" MouseMove="Border_MouseMove" MouseLeave="Border_MouseLeave"></Border>
</Grid>
</Window>
thanks!Mouse move messages in Windows are not accurate enough to capture really fast mouse movements, they are not raised for every pixel that the mouse pointer traverses.
But this is not necessarily always a bad thing. Would really want to handle a MouseEnter event of an element if the user just happens to "swish" the mouse pointer right through it, possibly by mistake?
Anyway, if you set the Background of the Border element to Transparent and/or increase the size of the actual border your event handlers should be invoked more frequently than before but still not always:
<StackPanel Orientation="Horizontal">
<Border x:Name="border" Background="Transparent" Width="30" Height="600" BorderBrush="Red" BorderThickness="1" MouseEnter="Border_MouseEnter" MouseMove="Border_MouseMove" MouseLeave="Border_MouseLeave"></Border>
<TextBlock x:Name="tblock" VerticalAlignment="Top"></TextBlock>
</StackPanel>
private void Border_MouseEnter(object sender, MouseEventArgs e)
string s = "1";
tblock.Text += "MouseEnter" + Environment.NewLine;
private void Border_MouseMove(object sender, MouseEventArgs e)
tblock.Text += "MouseMove" + Environment.NewLine;
private void Border_MouseLeave(object sender, MouseEventArgs e)
tblock.Text += "MouseLeave" + Environment.NewLine;
Hooking up to the MOUSEMOVE messages of the window can be done like this but the messages are still not raised for every pixel of movement:
public partial class MainWindow : Window
public MainWindow()
InitializeComponent();
protected override void OnSourceInitialized(EventArgs e)
base.OnSourceInitialized(e);
IntPtr windowHandle = (new System.Windows.Interop.WindowInteropHelper(this)).Handle;
System.Windows.Interop.HwndSource src = System.Windows.Interop.HwndSource.FromHwnd(windowHandle);
src.AddHook(new System.Windows.Interop.HwndSourceHook(WndProc));
private int i;
private const int WM_MOUSEMOVE = 0x0200;
private IntPtr WndProc(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
// address the messages you are receiving using msg, wParam, lParam
if (msg == WM_MOUSEMOVE)
tblock.Text = i++.ToString();
return IntPtr.Zero;
Please remember to mark helpful posts as answer to close your threads and then start a new thread if you have a new question. Please don't ask several questions in the same thread. -
Which tool will you use when you design Ejb...I just wanna to know!
I'm a beginner!@_@
and,yes,you can help me!
thank you!As for me, good tools are:
Together ControlCenter 6.0 www.togethersoft.com
XDoclet
www.sourceforge.net/projects/xdoclet
JBuilder 6.0 www.borland.com/jbuilder
I gave you three tools because they differ from each other a lot.
TCC is Java/J2EE/UML tool, XDoclet is a JavaDoc extension which can be
easily added
to the build process, JBuilder is well-know Java IDE.
"one_dust" <[email protected]> wrote in message
news:3cbcfbdd$[email protected]..
>
I'm a beginner!@_@
and,yes,you can help me!
thank you! -
I have a new hanset as my previous one ws damaged and everything was lost. When backing up which option should I use "set up as a new iphone or, restore from this , back up Jo's iphone"..
Thanks.You may do whatever you like.
If you want to set it up using the backup of your old iphone then choose that.
If you do not then choose as new. -
after installing updated firefox,my speed dial will not open when I close the current tab which it did before I upgraded. How do I fix this problem? Thank You, Mike Chidester
is it up to date
Speed Dial :: Add-ons for Firefox
"Works with:
Mobile 0.7 - 1.0.*
SeaMonkey 2.0 - 2.5a1
Firefox 2.0 - 8.0a1"
https://addons.mozilla.org/firefox/addon/speed-dial/#detail-relnotes -
Event Fired when a mxml component is shown on screen
hello,
I have following application structure nested up to 2/3 level.
Application
linkbar connected to viewstack
viewstack
NavigatorContent
mxml Component
NavigatorContent
mxml Component
mxml componet in turn has similar structure
componet
linkbar connected to viewstack
viewstack
NavigatorContent
mxml Component
NavigatorContent
mxml Component
and end component is form which is shown and actions performed
I want to execute specific code when the form is first time shown
which will collect data from server and will show for further actions.
User will edit/delete/update data with various button clicks.
I tried activate event on end component but it seems that it wont get
fired at all. End components are enclosed in BorderContainer or Group.
To test activate event I have used Alert.show only but popup is not shown
when I select link button on penutimate linkbar.
If I am doing something wrong please let me know as well please
guide me which event shall I use so that whenever linkbutton is
pressed on linkbar it will fire that event. In that event I can check
whether it has been called earlier by checking some variable which
will be null in creation complete and set in event fired when linkbutton is pressed.
Thanks and regards
RajaI think 'creationComplete' is the closest event to what you are looking for.
-
Which event dispatched after text selection done on spark text area in Apple iPad using Adobe Flex 4
I need to know which event triggered after text selection done in Apple iPad. This way i have done in desktop air app code (mouse events)
protected function txtEditor_mouseUpHandler(event:MouseEvent):void
if(txtEditor.selectionAnchorPosition != txtEditor.selectionActivePosition){
showNoteToolBar(event);
txtEditor.focusEnabled = true;
txtEditor.setFocus();
But in Apple iPad how to achieve through "Touch Event" ? And also i need how to hide all context menu on Spaek TextArea?. Why Touch.End event is not fired after place cursor on text area ?
Please help me !Ok, so I finally got it working but this is not ideal at all. Adobe really needs to give us some direction on how to properly deal with font embedding and TLF now that the release build breaks all functionality with loading runtime fonts and TLF.
Problem:
I am embedding collections of fonts (faces) into single family classes. Each individual face is registered with Font.registerFont(). I need to do this because I have to have mixed fonts within text flows - at least according to Alex H's recent blog post.
Fonts do not display in TLF without doing the following:
1. GlobalSettings.resolveFontLookupFunction = null;
2. editor.textFlow.flowComposer.swfContext = ISWFContext(this.getFontContext("AnyFamilyNameFromAnyFontEmbedded", false, false, FontLookup.EMBEDDED_CFF));
3. Instead of #2, use editor.textFlow.invalidateAllFormats();
Either #2 or #3 need to be performed. If I have a spark richEditableText control in MXML with defined familes from the loaded fonts. I even tried placing the control into a separate state so it wasn't created until after the fonts were loaded... I still needed to invalidate the formats or set the context.
The "AnyFamilyNameFromAnyFontEmbedded" does not need to be all of the embedded family names. It only needs to be one of them. Once one is used, all embedded fonts work. Also, I have to use the internal namespace to even get access to getFontContext, another oddity that, in my humble opinion, should never be necessary to create mixed style TLF content.
My questions are then:
1. Why am I required to use ISWFContext if I am using Font.registerFont()?
2. Why is GlobalSettings.resolveFontLookupFunction = null; also required for this to work?
3. What is the recommended workflow to embed fonts from multiple SWF files into the release build and have it work without having to jump through all these hoops?
Maybe you are looking for
-
How can i restore my new macbook pro. Lion is installed from the beginning, but I have no cd. What am I suposed to do?
-
New excel file cannot be opened with right click in any folder.
Usually I create a new file (.xlsx) by right click inside any folder of windows 7 . Recently I am observing that it is not being possible to create a new file (.xlsx) by right click when I am inside a folder. Whenever I right click in order to create
-
Opening Photos is quickly raising CPU to 250%+
Hi. I've imported both iPhoto and Aperture libraries into Photos. About 13,000 photos. (Kinda committed unless you can step it back.) And now just opening the Photos App threatens to turn my laptop into a Pizza oven. As you can see below the CPU% fo
-
HT1689 my iphone wont sync my music...
i plugged it in, and in my itunes my phone showed up and i had just got some new music so i normally just drag the song to my iphone thing on the side.. but now all of a sudden when im doing that its not going onto my phone /: heelp ?!
-
Jquery CSS question..
Hi all.. Please help me with this issue. I am trying to place a button on ""top right corner"" of my page. I am able to place it in the right position with CSS. But somehow after the button got moved it looks ""ugly"". Not sure what got changed Pleas