How to write java programme
can any one how help me to write java programme
nani,
can anyone help me to write java programmeI can't resist a good flame.
Yes we can probably all assist, in differing measure, in such a lofty goal. Now pray tell, which of the approximately 2 gazillion possible programs where you thinking of tackling? Let me take a punt... might it the ubiquitous "Hello World"?
Hmmm... yep lots & lots of people can probably help you that one... I wonder of any of them will?
Seriously, I suggest you start here, and (after a good chuckle - laughter is very good for you you know) move onto here and/or here
Have fun.
keith.
Similar Messages
-
How to write Java Scripts in Apex
Hi All,
Can any on tell me how to write Java Scripts in Apex.
Thanks in Advance,
MukundIf you want to link your custom JavaScripts to an Apex page, you have several options:
1. Add an HTML Region on Page 0 (Script will be written to every page) called something like "JavaScript & CSS". In this region add your Script to the region source like this:
<script language="JavaScript">
function hell ()
alert ("Hello World");
</script>
2. Add a similar region to the page you are working on (can only be accessed on this page)
3. Create an external JavaScript file and either load it into the WORKSPACE or into the images (/i/) directory on the server. You can then link the JS into you page via modifying the Page Template.
Hope that makes sense. Let me know if you want any further help with option 3.
Duncs -
How to write java code to read the pixel color in some place of screen?
Hello all:
How to write java code to read the pixel color in some place of screen?
The java application iteself doesn't have any GUI.
thank you
-DanelSee java.awt.Robot
-
How to write bdc programme to load the data in table control
Hi
i have to write a bdc programme and the data to be filled in table control fileds can any one help me with the code how i have to write it is for cs02 tcode
thanks and regards
naveenHi Naveen,
See the sample code
PERFORM bdc_dynpro USING 'SAPLCSDI' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RC29N-DATUV'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=KALL'.
PERFORM bdc_field USING 'RC29N-MATNR'
w_matnr.
PERFORM bdc_field USING 'RC29N-WERKS'
w_werks.
PERFORM bdc_field USING 'RC29N-STLAN'
'1'.
PERFORM bdc_field USING 'RC29N-DATUV'
'01/01/2004'.
PERFORM bdc_dynpro USING 'SAPLCSDI' '2110'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=FCPU'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RC29K-BMENG'.
PERFORM bdc_field USING 'RC29K-BMENG'
w_testuph.
PERFORM bdc_dynpro USING 'SAPLCSDI' '0150'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RC29P-MENGE(02)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=FCBU'.
PERFORM bdc_field USING 'RC29P-MENGE(01)'
w_testuph.
"For raw material.
IF NOT w_raw_mat_fg IS INITIAL.
PERFORM bdc_field USING 'RC29P-MENGE(02)'
w_testuph.
ENDIF.
PERFORM bdc_dynpro USING 'SAPLCSDI' '0130'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RC29P-POSNR'.
PERFORM bdc_dynpro USING 'SAPLCSDI' '0131'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RC29P-POTX1'.
PERFORM bdc_dynpro USING 'SAPLCSDI' '0130'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RC29P-POSNR'.
PERFORM bdc_dynpro USING 'SAPLCSDI' '0131'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RC29P-POTX1'.
PERFORM bdc_dynpro USING 'SAPLCSDI' '0150'.
CALL TRANSACTION 'CS02' USING bdcdata MODE w_display_mode UPDATE 'S'
MESSAGES INTO t_message_tab.
Prabhudas -
I have never worked with Java coding and am in need of assistance for an acrobat form I am working on.
- I have a form with a field identifier called BACompnayName (this is the field where they would enter their company name).
- I then have a form field with two radials that says "Is the shipping address the same as the business Address" - "Yes" and "No" (the form identified for this field is SASame.
What I am trying to accomplish:
- If they click yes, I would like the form to fill in the information found in BACompanyName otherwise, leave it blank to be filled out by the person filling out the form.
I appreciate any help.
Thanks,
BrettSomething like the following?
Checkbox for "make billing address the same as shipping address" doesn't work (JavaScript) -
How to write Java script for refering the 1st page text field from 2nd page?
Hello I am developing an VISITOR info interactive form with webdynpro ABAP, its with 2 pages. Their heirarchy is,
VISITOR_form
|
|
|------Page_1
| |
| |
| |------Text_Field_A_1
| |
| |------Text_Field_A_2
|
|------Page_2
|
|
|------Text_Field_B_1
|
|------Text_Field_B_2
Now, i have selected the 'Text_Field_B_1' of page_2 and writing the Java script, my requirement is; If Page_1's 'Text_Field_A_2' has a value of "Value_ABCD", THEN the 'Text_Field_B_1' of page_2 should be 'readOnly'. Pls let me know Wht is the Java script for this requirement?if (xfa.event.newText=="ABCD")
VISITOR_form.Page_2.Text_FieldB_1.access ="readOnly";
place script on change event of Text_FieldA_2 -
How to write java hello world to run in oracle sql prompt
Hi,
I'm newbie of this chapter. I know JDBC. I wanted to introduce the JDBC process & start executing the same in orcle sql prompt.
Do enlighten with an example.
Thnx in Advancecreate or replace and compile java source named helloworld as
public class HELLOWORLD{public static String HELLOWORLD() {return "Hello World";}}
create or replace function printhelloworld return varchar2 as
language java name 'HELLOWORLD.HELLOWORLD() return String';
SQL> select printhelloworld from dual;
Hello WorldRegards
Laurent -
How to write a programm in abap to the variables in tree format using inter
if we take the elements as A,X,Y,D,E,F,G,H,Z.
A is parent node.
X,Y are child nodes of A.
D,E,F,are child nodes of X.
G,H,Z,are child nodes of Y.
the output will be like this if we any elements
A X D E F Y G H Z.
here a has two child nodes.
X has a parent node A and child nodes D E F.
Y has parent node A and child nodes G H Z.Hi Ramana,
Welcome to SDN
Just go through the demo programs provided by SAP. Goto SE38, type BCALV_TREE* and hit F4. You'll get a list of demo programs for trees.
Hope this helps.
Regards
Anil Madhavan -
HOW TO WRITE A DESKTOP APPLICATION IN JAVA
Hi guys
I am new to JAVA.Doing my garduation.
I want to write a desktop application in java, not browser based applet based.
I am stuck at some points
1)like how can i make the application run like the same way we run an .exe file
2)about the database connection
"For example, what are the issues in running a
Java application from a local C: drive on an Intel PC
that needs to access a local database or Excel file? "
Please guide me
Thanks
Tinu JosephHi guys
I am new to JAVA.Doing my garduation.
I want to write a desktop application in java, not
browser based applet based.
I am stuck at some pointsLike how to write Java properly at all?
1)like how can i make the application run like the
same way we run an .exe fileWrite a .bat or .cmd file and have it start your Java app. Or Google for tools to create .exe for you.
2)about the database connection
"For example, what are the issues in running a
Java application from a local C: drive on an Intel PC
that needs to access a local database or Excel file?
"Better learn JDBC. Google for "JDBC tutorial".
% -
Writting java graphics and textual data from java application into MS word
By using POI API, I could write textual data into MS word by using
java application. Could any one help me out how to write
Java graphics(i.e. Writting JPanel) and textual data(i.e.IOStream data) both into MS word document.
Thank you for time spent.
Thanks with regards,
Mallikhi:
Can any one help me out how to read and write in to the MsWord using POI...plz it is very urgent...plz give ur reply to [email protected] -
Can anyone help me with a simple java programm in linux?
i just started learning how to write java code in high school and we had an assignment which required us to write a program that would calculate the amount of kilometers u traveled into miles and vis-versa but we had to give the user a chance to pick which one they had to do and our teacher told us to give them the option using 1 to calculate from kilometers to miles and 2 to calculate miles to kilometers .....
and i got confused so please helpEncephalopathic wrote:
First figure out an algorithm: how would you solve this problem just using pencil and paper. Once you know your equations and steps to take, then translate to Java. Why not give it a try first? You can't break your computer by doing this. Then come back with your code if you are still stuck.
Good luck.galaxyboy25,
This is very good advice. Getting into the habit of working out problems on paper/whiteboard first will save you many a headache later on. I'm relatively new to programming as well (only about 2 years professional experience) but this technique has helped me immensely in my work. In my mind, writing code is easy--figuring out what to write is where the real challenge is.
One other thing. In addition to sketching your problem on paper, it always helps to break a problem into very small, simple, and easily solvable pieces. Then put them together. In doing this you will find that not only will this make your task of problem solving much easier but you also end up writing cleaner and more flexible code.
-Thok -
Loading java programme at boot time
hiiiii everybody,
can anyone tell me how to load java programme automatically at the time of windows or linux startup i.e. when machine boot. please let me know at [email protected]
thanks in advance.Search - windows startup
Search - linux startup -
How to become a good java programmer
Hi guys
I have been in touch with java for 3 years but I have not learned it from basic and fundamentally, so I started to learn it from very basic. but how can I become a good java programmer? can we put the answer of this question in steps ?
ThanksAlex_Haze wrote:
Hi guys
I have been in touch with java for 3 years but I have not learned it from basic and fundamentally, so I started to learn it from very basic. but how can I become a good java programmer? can we put the answer of this question in steps ?
Thanks1) Get a good java book and read it from start to finish. Understand and then use every technique demonstrated in the book before moving onto the next.
2) Develop good programming practices in general. Use resources like Code Complete and software engineering books to improve the quality of your code and development practices. This is a typical programmer's bookshelf:
[http://www.codinghorror.com/blog/images/my-programming-bookshelf-small.jpg|http://www.codinghorror.com/blog/images/my-programming-bookshelf-small.jpg]
3) Learn new things, always. Start witing things in J2EE. Start writing things in Swing. Even pick up a new language. Different perspectives help you see things in different ways and let you think in new directions.
4) Pay attention to detail. Strive to write the very best code you can every time. Think constantly about how you can do it better.
5) Solicit feedback from peers, coworkers, and quality online communities. Ask them how you can do it better. Post code examples and trust your gut if you suspect that something could be done a better way.
6) Accept that it won't happen overnight. The road to being a "good" programmer is a long one. -
How to write a java function for use in where clause in SQL statement
Hi,
Does anyone know a good tutorial on how to write and include a Java class/function into Oracle.
I'd like to write mathematical function to use in my queries, but the resources available in PL/SQL are very limited.
Many thanxPim,
I see you got an answer in the PL/SQL forum.
But in case you haven't seen it, perhaps this Web page will help:
http://www.oracle.com/technology/tech/java/jsp/index.html
Good Luck,
Avi. -
Tips on how to write efficient java code for java mapping
hi
I do not have much knowledge in Java
Can anybody tell me some tips on how to write efficient and optimised java code to be used in java mapping
Thanks,
Loveenahi D'za,
JAVA in xi
A very important place where you will use JAVA in XI is while doing your Mapping. There will be cases when JAVA MAPPING is the best solution to go for. There are 2 types of Parsers available for JAVA Mapping. DOM Parser and SAX parser. Just got through the following links to understand more on Java Mapping and the APIs available.http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/package-summary.html http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
JAVA mapping -
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping /people/amol.joshi2/blog/2006/03/10/think-objects-when-creating-java-mappings /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
sample code for java mapping
Re: Example code DOM PARSER API -
http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html DOM --- /people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs tutorial sax and dom
For a tutorial on the methods of SAX and DOM http://java.sun.com/webservices/docs/1.1/tutorial/doc/
SAX AND dom PARSER ( BY thorsten) -
example /people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs java mapping example ( testing and debugging) /people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
regards
biplab
Use a Good Subject Line, One Question Per Posting - Award Points
Maybe you are looking for
-
I am getting The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) When i try to open any file using Adobe Private Template As String = "C:\temp\test.pdf" Dim gApp As New AcroApp() Dim gPdDoc As New AcroPDDoc() Dim g
-
Hi Everybody.....Happy Diwali...... The following questions are faced in my last interview. please clarify...... somebody has given answers for this but those are not helpful me. So anybody to me with full details......means detail answer with custom
-
I am trying to reset my security questions, however the send reset security info to email option is not available to me. Anyone know how I can fix this please.
-
Saving files to an external hard drive
I am getting ready to back up all my writing files as well as my music and photos to an external hard drive. If I copy Iphoto to the external hard drive, does that save the pictures or just the iphoto program. Do I need to save all my pics in Iphot
-
Can not access from link of Microsft Network Partner
Hi all, I tried to use Azure as benefit of MNP from thsi link and obtain the http://go.microsoft.com/fwlink/?LinkId=390214 and obtain access denied error. Please any help. Milton Victor Naranjo MCSE + Security MCSA + Security MCSE + Messaging MCSA +