Urgent help with quick translation questions
Hello,
I am somewhat new to Java. I have a translation to hand in in a few hours (French to English). Argh! I have questions on how I worded some parts of the translation (and also if I understood it right). Could you, great developers, please take a look and see if what I wrote makes sense? I've put *** around the words I wasn't sure about. If it sounds strange or is just plain wrong, please let know. I also separated two terms with a slash, when I was in doubt of which one was the best.
Many thanks in advance.
1) Tips- Always ***derive*** the exceptions java.lang.Exception and java.lang.RuntimeException.
Since these exceptions have an excessively broad meaning, ***the calling layers will not know how to
distinguish the message sent from the other exceptions that may also be passed to them.***
2) The use of the finally block does not require a catch block. Therefore, exceptions may be passed back to the
calling layers, while effectively freeing resources ***attributed*** locally
3) TIPS- Declare the order for SQL ***statements/elements*** in the constant declaration section (private static final).
Although this recommendation slightly hinders reading, it can have a significant impact on performance. In fact, since
the layers of access to data are ***low level access***, their optimization may be readily felt from the user’s
perspective.
4) Use “inlining.”
Inlining is a technique used by the Java compiler. Whenever possible, during compilation, the compiler
copies the body of a method in place of its call, rather than executing a ***memory jump to the method***.
In the example below, the "inline" code will run twice as fast as the ***method call***
5)tips - ***Reset the references to large objects such as arrays to null.***
Null in Java represents a reference which has not been ***set/established.*** After using a variable with a
large size, it must be ***reassigned a null value.*** This allows the garbage collector to quickly ***recycle the
memory allocated*** for the variable
6) TIPS Limit the indexed access to arrays.
Access to an array element is costly in terms of performance because it is necessary to invoke a verification
that ***the index was not exceeded.***
7) tips- Avoid the use of the “Double-Checked Locking” mechanism.
This code does not always work in a multi-threaded environment. The run-time behavior ***even depends on
compilers.*** Thus, use the following ***singleton implementation:***
8) Presumably, this implementation is less efficient than the previous one, since it seems to perform ***a prior
initialization (as opposed to an initialization on demand)***. In fact, at runtime, the initialization block of a
(static) class is called when the keyword MonSingleton appears, whether there is a call to getInstance() or
not. However, since ***this is a singleton***, any occurrence of the keyword will be immediately followed by a
call to getInstance(). ***Prior or on demand initializations*** are therefore equivalent.
If, however, a more complex initialization must take place during the actual call to getInstance, ***a standard
synchronization mechanism may be implemented, subsequently:***
9) Use the min and max values defined in the java.lang package classes that encapsulate the
primitive numeric types.
To compare an attribute or variable of primitive type integer or real (byte, short, int, long, float or double) to
***an extreme value of this type***, use the predefined constants and not the values themselves.
Vera
1) Tips- Always ***derive*** the exceptions java.lang.Exception and java.lang.RuntimeException.***inherit from***
***the calling layers will not know how to
distinguish the message sent from the other exceptions that may also be passed to them.***That's OK.
while effectively freeing resources ***attributed*** locally***allocated*** locally.
3) TIPS- Declare the order for SQL ***statements/elements*** in the constant declaration section (private static final).***statements***, but go back to the author. There is no such thing as a 'constant declaration section' in Java.
Although this recommendation slightly hinders reading, it can have a significant impact on performance. In fact, since
the layers of access to data are ***low level access***, their optimization may be readily felt from the user’s
perspective.Again refer to the author. This isn't true. It will make hardly any difference to the performance. It is more important from a style perspective.
4) Use “inlining.”
Inlining is a technique used by the Java compiler. Whenever possible, during compilation, the compiler
copies the body of a method in place of its call, rather than executing a ***memory jump to the method***.
In the example below, the "inline" code will run twice as fast as the ***method call***Refer to the author. This entire paragraph is completely untrue. There is no such thing as 'inlining' in Java, or rather there is no way to obey the instruction given to 'use it'. The compiler will or won't inline of its own accord, nothing you can do about it.
5)tips - ***Reset the references to large objects such as arrays to null.***Correct, but refer to the author. This is generally considered bad practice, not good.
Null in Java represents a reference which has not been ***set/established.******Initialized***
After using a variable with a
large size, it must be ***reassigned a null value.*** This allows the garbage collector to quickly ***recycle the
memory allocated*** for the variableAgain refer author. Correct scoping of variables is a much better solution than this.
***the index was not exceeded.******the index was not out of range***
The run-time behavior ***even depends on compilers.***Probably a correct translation but the statement is incorrect. Refer to the author. It does not depend on the compiler. It depends on the version of the JVM specification that is being adhered to by the implementation.
Thus, use the following ***singleton implementation:***Correct.
it seems to perform ***a prior initialization (as opposed to an initialization on demand)***.I would change 'prior' to 'automatic pre-'.
***this is a singleton***That's OK.
***Prior or on demand initializations***Change 'prior' to 'automatic'.
***a standard
synchronization mechanism may be implemented, subsequently:***I think this is nonsense. I would need to see the entire paragraph.
***an extreme value of this type******this type's minimum or maximum values***
I would say your author is more in need of a technical reviewer than a translator at this stage. There are far too serious technical errors in this short sample for comfort. The text isn't publishable as is.
Similar Messages
-
HT5787 How do you get help with your security questions if you forget your answers?
How do you get help with your security questions if you forget your answers?
You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
(97108) -
I am currently living in Tunisia but it's not on the Apple Contact Support list. I need help with my security questions which I cannot remember the answers. There is no link to send a reset email. What do I do?
Click here and ask the iTunes Store staff for assistance.
(114040) -
I need help with the security Questions is there some way to get you to remember them by e-mail of other wise
Read the HT5312 page that you posted from, it has instructions for how to reset them i.e. if you have a rescue email address set up on your account then steps 1 to 5 half-way down that page should give you a reset link.
If you don't have a rescue email address then you will need to contact iTunes Support / Apple in your country to get the questions reset.
Contacting Apple about account security : http://support.apple.com/kb/HT5699
When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 page that you posted from to add a rescue email address for potential future use -
Need some URGENT help with 3 DVD mastering issues PLEASE! :
Hi there,
Firstly, I am running DVD SP 3.0.2 on Mac OS 10.4.7 on a G5 Dual 2 GHz 3Gb Ram plenty of HD space...
I am creating a DVD with: An intro sequence, a main menu, 4 sub menus, and 4 sections with around 12 chapters each.
I am having some big problems, and a pretty stuck. I will lest them separately below, numbered. If you are able to help, please refer clearly to which number you are helping with. Any help is MUCH appreciated! Many thanks!!
1. Each of the 5 menus (1 main, 4 sub) have a background video, and a separate audio track. I added the background videos by simply dragging them to the assests panel, then from there onto the menu editor window. They are created in FCP and are properly encoded. However, when I click the motion button, or use the simulator, the videos do not show up. The music plays, but all i see is plain black.
What is going on?!?!?!
2. I am really struggling with rollover buttons. I have custom created buttons, and I wand them to have a soft red glow around them when hovered over. HOW ON EARTH DO I ACTUALLY DO THIS??
The buttons are in photoshop so can be exported with/without background/glow in any format.
3. Is it possible, once I have got the above rollover working, to have an image to the right hand side of my buttons which changes with the the button rollover. i.e. hover over button 1, see image 1. hover over button 2, image changes to image 2.
PLEASE PLEASE give any help you can, I have a deadline coming up and am quite stumped. Thanks again!!I am still having problems regarding issue Number 1. PLEASE ANYONE HELP?!
Sorry, I'm not sure about the motion menus. I avoid those whenever possible. But you might click on the menu in the storyline tab (whatever it's called -- the hierarchical view with the disc, tracks, slideshows, etc.) and look at the properties and see if there's anything you have to enable specifically for motion. And be sure the motion button is on on the main display/preview area, but it sounds like you already know how that works.
For your information, here is a screen grab of the menu I am trying to create:
http://www.redhavoc.co.uk/stuff/menu.jpg
I think it is obvious that when a button is hovered over, I want it to glow red, and the image to the right will change to match the respective button.
IS THIS GOING TO BE POSSIBLE????
Yes.
First, your menus have to be layered menus. Unfortunately, there's no way to convert non-layered menus to layered menus, so if you already have non-layered, you'll have to just delete them and create new layered menus. The button (and menu item) to create a layered menu should be right by the normal new-menu item.
Next, the graphical work is all in Photoshop.
Side tip: You may already know this, but I found it's best to use 640x480 for the Photoshop document. When I do text and leave it as a text object in the Photoshop file, it resizes poorly in DVDSP. So this ends up being another 720x480 vs. 640x480 square/rectangular pixel conversion thing. DVDSP plays in the 640x480 world, at least as far as the designer can see. So I keep my images at 640x480, and it doesn't have to resize, and everything looks right.
Moving on... Set up your basic background, the part that won't change (or will have other things covering it, like for your square image).
Then put in all the buttons and images you'll be using, each part in a separate layer. This could have fifteen buttons (you have five buttons, and there can be three versions for each -- inactive, selected, and activated versions) and five or six square images (you said one for each button, and you might want a blank default if, say, you want to add a "back" button on the menu and want some blank or default image for the square when they're on the "back" button).
Sometimes people don't bother with a separate "active" button state, but you usually want some visual feedback that they clicked the button. Also, I usually just build the default (unselected) button into the background; that's less hassle later on, and it will just draw the selected or activated buttons over that when the user is on that button.
Line up all your buttons and images. All the square images lined up perfectly on top of each other, all the buttons in the right places (so you'll have three buttons stacked on top of each other in each spot). Give each layer a short but quickly recognizable name, and line them up in a consistent order. (button1-default, button1-selected, button1-active, button1-squarepicture, then button2-default, ... etc.) Photoshop and DVDSP don't care, but it makes it easier for you later.
Note that earlier versions of DVDSP won't show Photoshop layer effects. (They handle layers, just not the effects, like inner glow, outer bezel, etc.) I don't remember when they changed this, but I think it was version 4.something. So if you're using that method to make your buttons glow, you may have to flatten each selected or active button layer, and you may even need to create a dummy blank layer underneath it first to give it something to flatten onto.
Save the file as a standard Photoshop file (.psd). Drag the file onto your DVDSP layered menu and set it as the background.
Now, in DVDSP, create all your buttons. Just drag boxes over/around the button pictures you have. Feel free to make them extra-big; users won't see the actual area you've selected, and bigger areas makes it easier for people to hit them if they're using a mouse on a computer to watch the DVD. You can point the buttons to their targets now if you want, and set the end jumps on the tracks if you want. (I tend to set the end jumps on the tracks so they automatically select the button for the next track.)
Now's the fun part, since it will actually hook everything up and should be easy if your naming layer order were consistent. Click on the layered menu (in that hierarchical view) and look at the properties window. (Sorry I can't remember the technical names for all these windows; I'm doing this all from memory. So feel free to ask more questions if you can't find what I'm talking about.) One of the properties tabs should have a grid of checkboxes with a list of your layers. Make sure the background is checked for all of the states. Then check the layers you want to show for each button state, as well as the corresponding square image to show for each.
Again, I'm doing this from memory, and I can't remember exactly how things are listed in that grid. But I remember it keeps your layers in the same order you put them in the Photoshop file and shows you those names, so it should make it easy to go down the list and check the right boxes.
And another side tip: You can update the Photoshop file, but once you've put it in DVDSP, if you change the layer order, it will screw up the check boxes you checked. It always shows you the layer names correctly, but it keeps the checkboxes in DVDSP simply assigned to the layer number, so the fifth layer will keep the same checkboxes even if you juggle them so some other layer is now the fifth layer. So if you do juggle the layers in Photoshop, go back and fix the checkbox list in DVDSP.
I put a sample Photoshop file based on yours in
http://dan.black.org/layered-menu-sample.psd
It's quick and dirty, but shows the layer layout, and you should be able to drop it on DVDSP to play with. (I also won't leave it there forever, maybe a few weeks, so anybody reading this in a month or more probably will get a 404 for that url.)
Again, doing this from memory, so feel free to ask if anything doesn't work or doesn't make sense.
G4/dual867 Mac OS X (10.4.5) 2GB/0.8TB -
Urgent Help with Planning Book
Hello Gurus,
Need your help with a very urgent issue. I cannot see my key figure values in my planning book(Interactive Planning). I could sucessfully generate my CVC, then initialised my planning area. Then when I go the interactive planning I can see all my characteristics -Ex Material master( has all values), Prod type has values, etc. Iam in DEV system and have to move the whole config to QA now. I have to validate that the config works in QA. Its works ok in the sandbox but I cannot figureout why I can not see the values for key figs that Iam loading from a Flat File. Please help!!!!!!Hello Suresh,
I have one more question for you. Let me tell you my scenario. I have the client giving me a rough forecast for the future. I have to do stat forecast based on the history and check that against the initial forecast given by them. But, the problem I realised now is that when I go to my planning books I can see the values for 2008 in mothly buckets since I have 0calmonth. But the client gave me another file with forecast for 2008 in monthly buckets and for 2009 and 2010 in quarter buckets. So, i have a planning buck profile defined to meet that but, how do I upload the file with both 0calmonth and 0calquarter in a single file. Please let me know!! Urgent task.
Thanks again,
Chinna. -
Need urgent help with HSDIO hardware timing
Hi everyone,
I need urgent help regarding HSDIO hardware timing. I've been working in a project which generating serial ramp using HSDIO pxie device.
I'm using clock rate 40MHz and generating 14 bit of boolean for each step of ramp. And I have to generate simply 256 steps ramp.
Which means, 256 (steps) x 14 (boolean array) x 25 ns (period of 1 boolean value) = 89,6 ns.
What I'm doing right now is with using index of FOR loop as my input data (converting the index into 14bit boolean), then write into pxie device in every iteration,
which means, my data is getting into output in every 1ms time, right? (I'm using windows)
And I want to be able to generate faster than that.
How can I prewrite my 256 steps ramp, then write them all at once into pxie device. I'm really stuck here.
In the picture can you see how I do the write into device in every iteration of FOR Loop.
Regards,
Yan.hi, thanks for responding.
with using example of dynamic generation with script, I can manage to generate the ramp with controllable delay (generate the whole waveform, including delay with script command, then write to the card).
But I still have 1 question, I can test the output of the generation using oscilloscope and cant see the start delay (I'm writing delay at the start, before generating the ramp). My signal generated at 0 sec.
How can I check this start delay? is there any good example delivered with Labview to check this generation? Somehow I cant use the "dynamic generation and acquisition" example to see my generation (cant figure out how to capture the generated signal).
regards,
Yan. -
Help with java translator...PLEASE!!!
I am currently in the process of learning the JAVA language.
i am having real problems tackling a question about programming a translator, can anyone help with this question?
- Write a Java class 'German' to model the german dictionary(using only a few phrases, say 4-5). You will need to choose an appropriate representation for the constant dictionary(ignore accents etc), and to provide a method 'Translate' that, given an English phrase, returns the corresponding German phrase. You must also deal with phrases that are not available.
I hope someone can help...
JohnLearn a Map structure.
-
URGENT: Help with dynamic borders!
Hello all -
I DESPERATLY need help with this! I am using the code from
kirupa's xml photo gallery with the thumbnails. right now the alpha
changes on mouseover, fine...but my client is demanding that it
draw a border instead. I have been at this for about a week and
have NO idea how to do this...i have looked at things like API's
and things...but my main issue is that the images and MC's are all
created on the fly and i dont know how to code in an on mouseover
draw a border type of function, no idea at all!
This is my code as it sits now, PLEASE SOMEONE HELP ME!!!
thank you in advance!really could use some help quick here guys
-
Please i need som help with my tabbedpoane. I want my tab to call a new class when it is chosen. I have tried this: tabbedPane.addTab( "Schema", new Schema() ); , but it doesnt work. Schema is a class in the same package. AI could really do with some help on this one.
Dont answer the question that this same guy is posted here
http://forum.java.sun.com/thread.jsp?thread=503459&forum=57&message=2382925
He is a good cross-poster -
Urgent help with Pages 5.0 needed
Hi guys,
I need urgent help! I deleted Pages 5.0 (as I HATED it) but now can't open a very important document. Can someone please tell me how to reinstall it??
Thanks
KellieDownloading again is not as easy as that. you must find the app in the "Purchased" section of the
app store and I think you then must hold down the option key to reinstall it.
BTW, I only worked with one document as a trial for Pages 5 and then imported it to Word and saved it. I then deleted Pages 5 (I can't believe anyone who works with software would think that piece of worthless junk would sufice for anyone who uses a word processor professionally), reopened the Word document and saved it in Pages 09.
I hope this helps -
Urgent Help with network access to FileOutputStream
URGENT HELP NEEDED GUYS...I am stuck on this past 2 days. I tried several alternatives but to vain.
I am trying to access a Folder on a user's computer which is lying in a different Domain.
For accessing this folder, I have the following information with me.
Domain name, PC name, folder name, windows username, windows password.
Note: This username and password will give me rights to read + write to that folder.
How to use these information to open a fileoutputstream ? Does the java.io package allow programs to pass a username, password , domainname, pcname and then the folder and filename to create/read/write files..
Pls. suggest code examples. Sometime back I posted this query but didnt get an answer to my satisfaction. I have tried at my end but unsuccessful yet. Help would be appreciated.
I am trying this on a Windows File System and Network domain
THIS IS V. URGENT
Thanks,Hi HJK,
I am referring to the last reply of yours.
" Hi, there are three approaches I can think of offhand:
1) make sure the user-context under which you run the java app has the right to access the remote drive.
2) Do the network connection in a batch or c program and call that at the start of your java app with Runtime#exec.
3) Write some c/c++ code to open the connection and integrate that via JNI.
Let me know what (other) solution you came up with in the end!
Regarding the 1st.
I am supposed to write a remote installation utility actually. There are around 200 PC(s) in a network on which I need to copy these java class files. My problem statement is such that at runtime I only have username, passwords, domain access. I am not supposed to map any drives. Its supposed to be done dynamically. No manual intervention required. :(
How do I do the network connection in a batch mode ? Let me know that?
If 2nd option can be done, probably I can think of action-3 at the moment I am quite blurr :( -
I need help with my security questions/answer?
I forgot my security questions answer
The Three Best Alternatives for Security Questions and Rescue Mail
1. Use Apple's Express Lane.
Go to https://expresslane.apple.com ; click 'See all products and services' at the
bottom of the page. In the next page click 'More Products and Services, then
'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
ID security questions' and click 'Continue'. Please be patient waiting for the return
phone call. It will come in time depending on how heavily the servers are being hit.
2. Call Apple Support in your country: Customer Service: Contacting Apple for support or
Apple ID- Contacting Apple for help with Apple ID account security. Ask to speak to
Account Security.
3. Rescue email address and how to reset Apple ID security questions.
How to Manage your Apple ID: Manage My Apple ID -
Need urgent help with Ifs1.1 on Solaris
We have installed IFS 1.1 with Oracle 8.1.7 on a three tier System (two Suns). We use JWS as WebServer. When we start IFS and JWS everything seems to work fine. But after some time (irregulary) we are not able to contact the JSP-Sites via a bowser. After restarting JWS, everything works fine for some time.
Sometimes it happens (about one times a day), that the whole JWS crashes (JWS-Admin doesn't work). So we have to restart the whole IFS.
What can be the problem? We need urgent help, because the deadline for our project is Wednesday.
By the way:
Where do I have to start CTX on the IFS- or the Oracle-Side?
nullYes, we tried the Oracle HTTP - Server, but we weren4t able to get it to work. We didn4t get our JSP-Files to work with it. But that is another issue. I think it4s not a problem of JWS, but IFS.
Additionally it is strange, that we are still able to connect to the database via SqlPlus.
IFS works fine for about 15 minutes, than it crashes, nothing works anymore. We found following errors in the IfsAgents.log:
maybe it can help?!
Mon Dec 04 23:12:20 CET 2000
Server STARTED: IfsAgents(19944) not managed
Attempting to load agent EventExchangerAgent
Agent EventExchangerAgent loaded
Server STARTED: IfsProtocols(19945) not managed
Attempting to start agent EventExchangerAgent
EventExchangerAgent: Start request
Agent EventExchangerAgent started
Attempting to load agent ExpirationAgent
Agent ExpirationAgent loaded
EventExchangerAgent: starting timer
Attempting to start agent ExpirationAgent
ExpirationAgent: Start request
Agent ExpirationAgent started
Attempting to load agent GarbageCollectionAgent
Agent GarbageCollectionAgent loaded
ExpirationAgent: computed initial delay (in ms) is: 10024504
ExpirationAgent: starting timer
Attempting to start agent GarbageCollectionAgent
GarbageCollectionAgent: Start request
Agent GarbageCollectionAgent started
Attempting to load agent ContentGarbageCollectionAgent
Agent ContentGarbageCollectionAgent loaded
GarbageCollectionAgent: computed initial delay (in ms) is: 11816890
GarbageCollectionAgent: starting timer
Attempting to start agent ContentGarbageCollectionAgent
ContentGarbageCollectionAgent: Start request
Agent ContentGarbageCollectionAgent started
Attempting to load agent DanglingObjectAVCleanupAgent
Agent DanglingObjectAVCleanupAgent loaded
ContentGarbageCollectionAgent: starting timer
Attempting to start agent DanglingObjectAVCleanupAgent
DanglingObjectAVCleanupAgent: Start request
Agent DanglingObjectAVCleanupAgent started
Attempting to load agent OutboxAgent
Agent OutboxAgent loaded
DanglingObjectAVCleanupAgent: computed initial delay (in ms) is: 5500105
DanglingObjectAVCleanupAgent: starting timer
Attempting to start agent OutboxAgent
OutboxAgent: Start request
Agent OutboxAgent started
Attempting to load agent ServiceWatchdogAgent
Agent ServiceWatchdogAgent loaded
OutboxAgent: Done processing
Attempting to start agent ServiceWatchdogAgent
ServiceWatchdogAgent: Start request
Agent ServiceWatchdogAgent started
Attempting to load agent QuotaAgent
Agent QuotaAgent loaded
ServiceWatchdogAgent: Initializing ServerWatchdogTable with 9 entries
ServiceWatchdogAgent: starting timer
Server STARTED: FtpServer(20082) managed by IfsProtocols(19945)
ServiceWatchdogAgent: New Server being watchdogged
Attempting to start agent QuotaAgent
QuotaAgent: Start request
Agent QuotaAgent started
QuotaAgent: starting timer
Server STARTED: CupServer(20124) managed by IfsProtocols(19945)
ServiceWatchdogAgent: New Server being watchdogged
Server STARTED: ImapServer(20130) managed by IfsProtocols(19945)
ServiceWatchdogAgent: New Server being watchdogged
Server STARTED: SmtpServer(20150) managed by IfsProtocols(19945)
ServiceWatchdogAgent: New Server being watchdogged
ServiceWatchdogAgent: Unlocked Server Detected in checkServer
ServiceWatchdogAgent: Unlocked Server Detected in checkServer
ServiceWatchdogAgent: Unlocked Server Detected in checkServer
ServiceWatchdogAgent: Unlocked Server Detected in checkServer
ServiceWatchdogAgent: Unlocked Server Detected in checkServer
ServiceWatchdogAgent: Unlocked Server Detected in checkServer
ServiceWatchdogAgent: Unlocked Server being investigated
ServiceWatchdogAgent: Unlocked Server being investigated
ServiceWatchdogAgent: Unlocked Server being investigated
ServiceWatchdogAgent: Unlocked Server being investigated
ServiceWatchdogAgent: Unlocked Server being investigated
ServiceWatchdogAgent: Unlocked Server being investigated
ServiceWatchdogAgent: Freeing unlocked server 19687
ServiceWatchdogAgent: Freeing unlocked server 19666
Server STOPPED: CupServer(19687) managed by IfsProtocols(19519)
ServiceWatchdogAgent: Freeing unlocked server 19723
ServiceWatchdogAgent: Freeing unlocked server 19520
Server STOPPED: FtpServer(19666) managed by IfsProtocols(19519)
Server STOPPED: SmtpServer(19723) managed by IfsProtocols(19519)
ServiceWatchdogAgent: Freeing unlocked server 19519
Server STOPPED: IfsAgents(19520) not managed
ServiceWatchdogAgent: Freeing unlocked server 19712
Server STOPPED: IfsProtocols(19519) not managed
Server STOPPED: ImapServer(19712) managed by IfsProtocols(19519)
ServiceWatchdogAgent: Freed Server removed from watchdog list
ServiceWatchdogAgent: Freed Server removed from watchdog list
ServiceWatchdogAgent: Freed Server removed from watchdog list
ServiceWatchdogAgent: Freed Server removed from watchdog list
ServiceWatchdogAgent: Freed Server removed from watchdog list
ServiceWatchdogAgent: Freed Server removed from watchdog list
QuotaAgent: Timer event: 0 active; 0 exceeded
ContentGarbageCollectionAgent: Freed 5 unreferenced ContentObjects
QuotaAgent: Timer event: 0 active; 0 exceeded
ServiceWatchdogAgent: IfsException publishing timer details:
ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-11012: Unable to get events from other services
java.sql.SQLException: ORA-03114: not connected to ORACLE
ServiceWatchdogAgent: IfsException in checkForDeadServices():
ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
java.sql.SQLException: ORA-03114: not connected to ORACLE
ServiceWatchdogAgent: IfsException in handle loop; continuing:
ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
java.sql.SQLException: ORA-03114: not connected to ORACLE
ServiceWatchdogAgent: IfsException publishing timer details:
ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
java.sql.SQLException: ORA-03114: not connected to ORACLE
ServiceWatchdogAgent: IfsException publishing timer details:
ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
java.sql.SQLException: ORA-03114: not connected to ORACLE
ServiceWatchdogAgent: IfsException publishing timer details:
ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
java.sql.SQLException: ORA-03114: not connected to ORACLE
ServiceWatchdogAgent: IfsException publishing timer details:
ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
java.sql.SQLException: ORA-03114: not connected to ORACLE
ServiceWatchdogAgent: IfsException publishing timer details:
ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
java.sql.SQLException: ORA-03114: not connected to ORACLE
null -
URGENT Help With Scientific Calculator!
Hi everybody,
I designed a calculator, and I need help with the rest of the actions. I know I need to use the different Math methods, but I tried tried that and it didn't work. Also, it needs to work as an applet and application, and in the applet, the buttons don't appear in order, how can I fix that?
I will really appreciate your help with this program, I can't get it to work and I'm frustrated, I need to finish this for next Tuesday 16th. Please e-mail me at [email protected].
Below is the code for the calcualtor.
Thanks a lot!
-Maria
// calculator
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
public class calculator extends JApplet implements
ActionListener
private JButton one, two, three, four, five, six, seven,
eight, nine, zero, dec, eq, plus, minus, mult, div, clear,
mem, mrc, sin, cos, tan, asin, acos, atan, x2, sqrt, exp, pi, percent;
private JLabel output, blank;
private Container container;
private String operation;
private double number1, number2, result;
private boolean clear = false;
//GUI
public void init()
container = getContentPane();
//Title
//super("Calculator");
JPanel container = new JPanel();
container.setLayout( new FlowLayout( FlowLayout.CENTER
output = new JLabel("");
output.setBorder(new MatteBorder(2,2,2,2,Color.gray));
output.setPreferredSize(new Dimension(1,26));
getContentPane().setBackground(Color.white);
getContentPane().add( "North",output );
getContentPane().add( "Center",container );
//blank
blank = new JLabel( " " );
container.add( blank );
//clear
clear = new JButton( "CE" );
clear.addActionListener(this);
container.add( clear );
//seven
seven = new JButton( "7" );
seven.addActionListener(this);
container.add( seven );
//eight
eight = new JButton( "8" );
eight.addActionListener(this);
container.add( eight );
//nine
nine = new JButton( "9" );
nine.addActionListener(this);
container.add( nine );
//div
div = new JButton( "/" );
div.addActionListener(this);
container.add( div );
//four
four = new JButton( "4" );
four.addActionListener(this);
container.add( four );
//five
five = new JButton( "5" );
five.addActionListener(this);
container.add( five );
//six
six = new JButton( "6" );
six.addActionListener(this);
container.add( six );
//mult
mult = new JButton( "*" );
mult.addActionListener(this);
container.add( mult );
//one
one = new JButton( "1" );
one.addActionListener(this);
container.add( one );
//two
two = new JButton( "2" );
two.addActionListener(this);
container.add( two );
//three
three = new JButton( "3" );
three.addActionListener(this);
container.add( three );
//minus
minus = new JButton( "-" );
minus.addActionListener(this);
container.add( minus );
//zero
zero = new JButton( "0" );
zero.addActionListener(this);
container.add( zero );
//dec
dec = new JButton( "." );
dec.addActionListener(this);
container.add( dec );
//plus
plus = new JButton( "+" );
plus.addActionListener(this);
container.add( plus );
//mem
mem = new JButton( "MEM" );
mem.addActionListener(this);
container.add( mem );
//mrc
mrc = new JButton( "MRC" );
mrc.addActionListener(this);
container.add( mrc );
//sin
sin = new JButton( "SIN" );
sin.addActionListener(this);
container.add( sin );
//cos
cos = new JButton( "COS" );
cos.addActionListener(this);
container.add( cos );
//tan
tan = new JButton( "TAN" );
tan.addActionListener(this);
container.add( tan );
//asin
asin = new JButton( "ASIN" );
asin.addActionListener(this);
container.add( asin );
//acos
acos = new JButton( "ACOS" );
cos.addActionListener(this);
container.add( cos );
//atan
atan = new JButton( "ATAN" );
atan.addActionListener(this);
container.add( atan );
//x2
x2 = new JButton( "X2" );
x2.addActionListener(this);
container.add( x2 );
//sqrt
sqrt = new JButton( "SQRT" );
sqrt.addActionListener(this);
container.add( sqrt );
//exp
exp = new JButton( "EXP" );
exp.addActionListener(this);
container.add( exp );
//pi
pi = new JButton( "PI" );
pi.addActionListener(this);
container.add( pi );
//percent
percent = new JButton( "%" );
percent.addActionListener(this);
container.add( percent );
//eq
eq = new JButton( "=" );
eq.addActionListener(this);
container.add( eq );
//Set size and visible
setSize( 190, 285 );
setVisible( true );
public static void main(String args[]){
//execute applet as application
//applet's window
JFrame applicationWindow = new JFrame("calculator");
applicationWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//applet instance
calculator appletObject = new calculator();
//init and start methods
appletObject.init();
appletObject.start();
} // end main
public void actionPerformed(ActionEvent ae)
JButton but = ( JButton )ae.getSource();
//dec action
if( but.getText() == "." )
//if dec is pressed, first check to make shure there
is not already a decimal
String temp = output.getText();
if( temp.indexOf( '.' ) == -1 )
output.setText( output.getText() + but.getText() );
//clear action
else if( but.getText() == "CE" )
output.setText( "" );
operation = "";
number1 = 0.0;
number2 = 0.0;
//plus action
else if( but.getText() == "+" )
operation = "+";
number1 = Double.parseDouble( output.getText() );
clear = true;
//output.setText( "" );
//minus action
else if( but.getText() == "-" )
operation = "-";
number1 = Double.parseDouble( output.getText() );
clear = true;
//output.setText( "" );
//mult action
else if( but.getText() == "*" )
operation = "*";
number1 = Double.parseDouble( output.getText() );
clear = true;
//output.setText( "" );
//div action
else if( but.getText() == "/" )
operation = "/";
number1 = Double.parseDouble( output.getText() );
clear = true;
//output.setText( "" );
//eq action
else if( but.getText() == "=" )
number2 = Double.parseDouble( output.getText() );
if( operation == "+" )
result = number1 + number2;
else if( operation == "-" )
result = number1 - number2;
else if( operation == "*" )
result = number1 * number2;
else if( operation == "/" )
result = number1 / number2;
//output result
output.setText( String.valueOf( result ) );
clear = true;
operation = "";
//default action
else
if( clear == true )
output.setText( "" );
clear = false;
output.setText( output.getText() + but.getText() );
}Multiple post:
http://forum.java.sun.com/thread.jsp?forum=31&thread=474370&tstart=0&trange=30
Maybe you are looking for
-
Exporting to PDF from Page Server object
Post Author: jdp CA Forum: .NET I'm creating a website and currently have all reports exported to PDF utilizing a RAS server, no Crystal viewer. What I'd like to do is utilize a Page Server to view reports in PDF format and still not use the Crystal
-
How to print a pdf @ 100% 10cm on screen = 10cm on print
I cannot seem to print pdfs to any printer wireless or wired at 100%. If i put 100% and choose boarderless paper the print out is one size if i choose with boarder it prints out a different size. furthermore in both cases the print is not even 100% 1
-
Help Please!!!!!!!! Illustrator file will not open.
My computer froze with my illustrator file open. I was able to re-start my computer with no problems. But when I went to open my .ai file -that I have been working on for weeks- it would not open and the tiny window reading "The file xxxxx.ai is in a
-
"Created with a Trial Version" Bar
How can I get the "created in a trial version" bar to come off when the product has been registered?
-
is Here, here is my post in the MBPro section, but I feel this section has the widest brain power ~ here goes:- my late 09 Matt 17"MBPro & early 09 Macbook have after the 1st (iTunes) 2/1/10 update been acting up:- Everything on/in iTunes has come fr