Strategy to detect changes on screen
I have a JPane which is in a JFrame and pane holds all my gui components like JComboBox , JTable , JStringField etc....what is the
best , easiest way to implement a "listener" which will sense if a user has changed any component value so that I can give a message "Please save changes or u will lose it" if user "Xes" out of the screen...
Thanks for your time
1) Have a 'boolean = false' to record the change
2) add appropriate listeners to all your components... JTable.addTableModelListener / JTextField.addKeyListener / JComboBox.addActionListener etc etc
3) any event on the above listeners... will set the 'boolean = true', with a bit faster performance... use this < if(boolean = false) boolean = true; >
4) when user "Xes" out of the screen... check the boolean value, if it's true, then ask the user if changes need to be saved.
Similar Messages
-
Detecting Change in screen resolution
Let me tell you clear scenario:
Suppose,user has resolution = 800x600 and is using my flash
application, this is a simple case. Now, if He/She change his/her
system's resolution from 800x600 to something else, while Flash
application is running then how my Flash application can detect
this change in resolution?
Best Regards,
Waqas Darhow often do you expect that to happen??
you can use the screenResolutionX and screenResolutionY
properties of the Capabilites class to periodically check for
changes. -
phone update has caused iphone5 to just show a screen saying itunes? cannot change this screen. pc not detecting iphone.
Hi abbiesetty,
If your iPhone is showing the Connect to iTunes screen and you are unable to restore because your iPhone isn't being recognized by iTunes on your Windows machine, you may find the troubleshooting steps outlined in the following article helpful:
iOS: Device not recognized in iTunes for Windows
http://support.apple.com/kb/TS1538
Regards,
- Brenden -
My computer is stuck at a 'Detecting Storage device' screen
Hi, my desktop is won't start up correctly?
For some reason it's stuck at a Detecting Storage device screen and won't go any further...
PLEASE HELP!Your PC is behind one bios update that deal in a black screen issue coming out of sleep mode. The problem is you get update the bios until your PC a stable.
Did you try clearing the CMOS?
Do you have a set of the HP recovery disks? Do you have any bootable disks?
Did you make any recent changes to your PC?
HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
HP Photosmart Premium C309G, HP Photosmart 6520
HP Touchpad, HP Chromebook 11
Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
Windows 7/8 UEFI/Legacy mode, MBR/GPT -
How to change the screen element of a single field in a table control
Hi Gurus,
I want to change the screen element of a single field (or the whole row) in a table control according to a condition.
I have 2 columns in the table control. One is an input column and one output only. When user enters values into the input column, they need to be compared against the values in the other column, and if there is a discrepancy, the row where the discrepancy is needs to be highlighted.
I have tried the following code which highlights the whole column ...
CONTROLS: TC_ZVOYG_BINS TYPE TABLEVIEW USING SCREEN 0500.
DATA: wa_tc_zvoyg_col LIKE LINE OF TC_ZVOYG_BINS-cols.
LOOP AT G_TC_ZVOYG_BINS_ITAB
INTO G_TC_ZVOYG_BINS_WA.
if G_TC_ZVOYG_BINS_WA-zdelivery_bin ne G_TC_ZVOYG_BINS_WA-zactual_bin.
loop at screen.
IF screen-name = 'ZVOYG_BINS-ZACTUAL_BIN'.
wa_tc_zvoyg_col-screen-intensified = 1.
MODIFY tc_zvoyg_bins-cols FROM wa_tc_zvoyg_col TRANSPORTING
screen-intensified WHERE screen-name = screen-name.
endif.
endloop.
endif.
endloop.
And also the following code which makes no change ...
LOOP AT G_TC_ZVOYG_BINS_ITAB
INTO G_TC_ZVOYG_BINS_WA.
if G_TC_ZVOYG_BINS_WA-zdelivery_bin ne G_TC_ZVOYG_BINS_WA-zactual_bin.
loop at screen.
IF screen-name = 'ZVOYG_BINS-ZACTUAL_BIN'.
screen-intensified = '1'.
modify screen.
endif.
endloop.
endif.
endloop.
Thanks in advance.Hi,
The modification of a screen element attribute (LOOP AT SCREEN...MODIFY SCREEN) must always be done in the PBO (for a dynpro, it will be in a PBO module, i.e. declared by MODULE ... OUTPUT)
About the loop at the internal table, it is done automatically by the system, also during the PBO, you'll find something like LOOP [AT itab] ... WITH CONTROL ... in the PBO part of the screen flow logic (note: you may have to complete with a supplementary READ TABLE if you don't use AT itab). So you don't need an additional loop.
Best regards
Sandra -
Do I have to back up the data of my macbook white unibody if I am changing the screen because of the crack problem at the the back of the screen?
They told me to bring it to the genius at the apple store. They will change it for free but I don't have any physical place to back up my computer, they said it will take a coupe of days. I am not really sure if I have to back it up.
Thank you.gmedina172 wrote:
Should I use time machine? ...
Mac 101 Time Machine > http://support.apple.com/kb/HT1427
Time Machine Tutorial > Time Machine Tutorial
Video on Restore From Time Machine
http://support.apple.com/kb/VI29 -
Satellite P300 PSPCCE: I want to remove or chang splash screen on startup
I have Satellite P300 PSPCCE laptop and want to remove or change splash screen on begin of booting laptop.
Is there a way to do it? My Bios version is v3,40this is how it looks my BIOS setup (no options like quite boot, fast boot, etc.)
Main
* System Time
* System Date
* CPU Type
* CPU Speed
* HDD1 model name
* HDD2 model name
* Optical Disc driver
* Power on display
* Total Memory
* System Bios version
* Language
Advanced
* Legacy USB Support
* Core Multri-Processing
* Execute-Disable bit Capability
* Intel(R) Virtualization Technology
* Built-in LAN
* Wake-up on keybord
* Wake-up on LAN/Wireless LAN
* Critical Battery Wake up
* Pointing devices
* Illumination LED
* USB Sleep and charge
* HDMI-CEC
* Remote power on/off
* SATA controler Mode
Security
* User password Is
* Supervisor password is
* Set user password
* Set supervisor password
* HDD1 password
* Set HDD1 User password
* HDD2 password
* Set HDD2 User password
Boot
* HDD1
* HDD2
* CD/DVD
* FDD
* LAN
Exit
* Exite saving changes
* Exit discarding changes
* Load setup defaults
* Discard changes
* Save changes
Which version of bios, are you having? -
Change Password Screen error in - External Facing Portal
HI,
We have developed an external facing portal for anonymous users and the EFP has protected content which will redirect the users to enter logon information to access it.
The process of authentication also working well in EFP but we are getting some strange error when the password was "reset' by administrator.
Here is the process...
1. Password 'reset" by administrator
2. user clicks on "protected content"
3. Logon screen displayed
4. After entering details, should be redirected to change their password but instead of that we are getting "Java iView Runtime error"
I need expert views on this to solve.
This is happening only when accessing EFP, user will be redirecting successfully to change password screen when accessing through "/irj/portal"
Any solution.
Thanks
MMKHere is the scenario ..
1. User's password was reset by administrator.
**That's fine.
2. User gets redirected to change their password when logging (first time after reset) ... when accessing via .. http://<server>:<port>/irj/portal
**That's ok too, this is just a redirection. At this point I would be doing https for external customers though.
3. Occured "Java Ivew run time error" when the user trying to login from External Facing Portal ... via .. http://<server>:<port>/irj/portal/anonymous?guest_user=partners
**At this point you will have to look at your .trc log files. (logviewer) If this is just an access denied issue then look at permissions in the roles or groups. If you are assigning a new password, is that effecting a group or system membership? The .trc files will give a heads up. -
How do I change the screen size to standard in iMovie 10?
I can't seem to find where to change the screen to standard size - in previous imovies it gave the option when creating the new project but this version doesn't seem to.
Star with:
Menu > File > New from Template Chooser > Sidebar > Page Layout > Blank > Blank Canvas
If you need to have two cards on one page then just set up one using text boxes and images to the 4 x 6 (inches?), group them and option shift drag a second copy down the page so you then have 2 and alter the copy as you need.
Change the text and images to placeholders, capture those as a Layout and then save that as a template.
http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=182&highlight=labels &mforum=iworktipsntrick
1. To make the individual card follow the instructions for Labels & Business cards but use your size:
2. To make the placeholders see Double folded Greeting Card.
3. To make the template follow Letterhead and follower sets ignoring the irrelevant bits, and only capturing one page, before saving as a template.
Peter -
Is there any way to change the screen resolution in Front Row?
Hi all,
I've got a Mac Mini plugged in to my TV, and I want to be able to change the screen resolution depending on the content I'm watching (as some content is in 4:3 aspect ratio, some is in 16:9, and I'd prefer to have the picture filling the screen completely). Unfortunately, the TV doesn't have a "stretch" mode for making an 4:3 picture fit a 16:9 aspect ratio. If I know what I want to watch in advance, I can set the resolution accordingly using system prefs on the mac, but if I'm just sitting back choosing what to watch with the Apple Remote, it's annoying to have to leave front row, walk over to the computer and change resolution once I've decided what to watch, open system prefs, change resolution, re-launch Front Row and find what I wanted to watch again.
So I was wondering if anyone had figured a way to allow the screen resolution to be switched from within the FrontRow UI. I've seen that people have written python based plug-ins such as PyeTV and Understudy that allow different types of content to be added to FrontRow, but I've not found any utility plug-ins such as what I'm looking for on the net (nor could I find SDK documentation on this API in the stuff that comes with XCode).
I guess the other approach might be quick keys: has anyone had any success hooking up quick keys macros alongside front row in response to apple remote events? (seems too few events to be able to choose from, but I've never tried it, so I won't assume!) Or how about is there a way to trigger an AppleScript from within Front Row? And, of course, I'm very open to any other ideas you might have!
Thanks very much in advance for any ideas on this.
Andy
Message was edited by: Andy__DSafe Boot from the HD, (holding Shift key down at bootup), set a good rez there.
-
Not letting me change my screen saver
Every time I open up system preferences and click on "Desktop & Screen Saver" and then click on the "Screen Saver" tab... the system pref. freezes and closes unexpectedly
It lets me change my background but whenever i try to change my screen saver it keeps "Quitting unexpectedly"
then it gives me the option to reopen system pref., report the message to apple (which i have done) or close it... then when I click reopen, i click again on desktop and screen saver and it freezes again and another error message opens up and says
the application system preferences quit unexpectedly after it was reopened... and i have a new set of options
Close, Try Again, or Report
So i click try again and it does actually let me access the screen saver tab... and i change it from what it is now which is the iTunes artwork
and when i click close or quit system pref. another window pops up that says...
New settings have been created for this application.. do you wish to use these settings from now on? and so i click "Use New Settings" rather than "Use original settings"
but then when i start my screensaver... it STILL is my original screen saver that i had before...
so WHY won't it let me change it
I have a MacBook Pro 15" glossy, 160 GB 2.4GHZ
i bought it in July so its still brand new so what is the problem?
Help would be MUCH appreciatedHi and welcome to the Skype Community,
Please change your password to ensure that no other location is preventing/reverting the name change: https://support.skype.com/en/faq/FA95/how-do-i-change-my-password
Follow the latest Skype Community News
↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓ -
Can't Change Lock Screen Background Image and User Account Picture in Windows 8.1.
I am running Windows8.1 Single Language with windows activated. Upgraded from Window 8 to Windows 8.1.
Lenovo Y410p.
4th generation Intel® Core™ i7-4700MQ (2.40GHz 1600MHz 6MB) with 16GB RAM.
NVIDIA® GeForce® GT750M 2GB .
I tried all methods that I found on web included :
1. http://www.askvg.com/fix-cant-change-lock-screen-background-and-user-account-picture-in-windows-8/
2. http://answers.microsoft.com/en-us/windows/forum/windows8_1-desktop/lockscreen-issues-on-windows-81/c51f570a-7a69-4e92-8348-3ebbed778592
3. I deleted the C:\ProgramData\Microsoft\Windows\SystemData file and folder
4. I restored the Libraries Features.
5. I run SFC / Scannow 3 times but get no error.
6. I created a new local account but the same problem shows up. (I'm using live for main account.)
Now, Please tell me what should I do, Thanks.Hi,
First of all, please run the command slmgr.vbs /dlv
After that, check the License status if it is licensed.
Is there any error message when you couldn't change lock background or this option just grey out?
Roger Lu
TechNet Community Support -
How to change the screen resolution
Dear All,
Could someone please help and tell me how I can change the screen resolution (i.e. the dimensions of the monitor) in Solaris 10 using CDE?
Regards and thanks a lot for your replyThis site has some instructions on how to do this: http://solaris-x86.org/documents/tutorials/cde.mhtml
-
I am unable to change my screen brightness using the fn+F2/fn+F3 keys. I understand that it can still be adjusted differently but I want this way to work. Also whenever I change my volume using the fn+F7/fn+F8/fn+F9 keys, the little on-screen display doesn't pop-up any more. I would like to fix this and any help would be greatly appreciated.
Hi
You have a couple of options as I see it please find the web link given below and the steps might help you to fix your issue on the unit.
Resolving Problems with the Brightness of the Display
Let us know how it goes!
*Although I am an HP employee, I am speaking for myself and not for HP.
****Click the White Kudos star to say thanks****
****Please mark Accept As Solution if it solves your problem****
Regards
Manjunath
Let us know how it goes!
"I work for HP."
****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
****Please mark Accept As Solution if it solves your problem****
Regards
Manjunath -
Speckles dust on the screen and it cannot be removed today when I decided to change the screen protector film and noticed is not my fault it is a factory defect on screen it is either dead pixel or speckle dust on screen they are so many said and experience I have read. So I need the replacement a new one for that dismayed screen on my iPad Air. I bought this 3 months ago in Avant Abenson at Greenbelt Makati Philippines. I need the replacement for tomorrow I will go to the store I bought. I love apple products but they need to replace and make go round to improve some defects and cannot be more escalate with this issue of the many of patronizing your products. It is sometimes irritating to the eyes and seen dirt on the screen. Thank you apple customer service to bringing up my complaints and a replacement for tomorrow's to inform the store I bought and advise them here in the Philippines to facilitate in regards to this matter.
I wanted to buy an ipad air to replace my ipad 2 but the one I wanted was (luckily) sold out.
Yesterday I tested the air from a collegue and I noticed the screen was SUBSTANTIALLY less sensitive than the screen of my ipad 2 when using my stylus.
I use Stylus R US especially for I annotate and with the air this did not work well at all... Half of the time there was no contact registered so underying certain parts of the text was a disaster...
Just working with the finger all whent OK... Just fear that another app I use a lot (notes +) will have same problem.
On the Ipad 4 also retina all goes *** smooth as on my ipad 2...
Is this a fault of a specific ipad air series? Or is this normal?? If it is I think this is truelly a huge flaw and I cannot see how not manny people using the ipad for notetaking etc did not notice this...
Maybe you are looking for
-
Query to get the data of all the columns in a table except any one column
Can anyone please tell how to write a query to get the data of all the columns in a table except one particular column.. For Example: Let us consider the EMP table., From this table except the column comm all the remaining columns of the table should
-
New printers supported on old LC II
Can anyone tell me clearly what printer cable connection and communication standards are supported by the LC II? Background: I want to replace a Personal LaserWriter LS currently being used with the LC II, and Apple's document at http://docs.info.app
-
How can i download hobbit 2 trailer in Ipad
How can i download hobbit 2 trailer in Ipad as according to the question i put on.
-
Recently IPhoto is unable to run stable in full screen mode. After a couple of seconds (not always the same amount of time) the window vanishes to the background. It can be returned to the foreground manually by pressing CMD + Tab for example, but th
-
Code to be exeuted at tomcat startup time
Hello all I have an application which has to deal with a lot of data. Its actually a servlet which serves charts based on user's choice of dates. Since the data the servlet has to look through is huge and stored in flat files, I want to store everyth