A Downcasting example. Help needed

Hello,
Can someone please explain the term Downcasting?
From what I have understood is that in Downcasting,
the superclass is typecasted to a subclass.
Am I right in my understanding? or have I overlooked something?
For example:
class Animal{
class Cat extends Animal{
class Downcasting{
public static void main(String args[]){
Animal a = new Cat();
typeCasting(a);
static void typeCasting(Animal a){
Cat c = (Cat)a;
}

Yep. That's downcasting.

Similar Messages

  • Internationalised Example Help Needed

    My goal here is to put together an easily understandable example of an Internationalised stand-alone java application.
    To start, I would like to create a stand-alone java application that performs the following tasks:
    1. Has a pulldown that allows a user to select a language (English, Arabic, Korean, Greek, etc.) When the language is selected, I want to change the properties of a JTextFild so that when a user types in the JTextField, the characters that come out in the JTextField are in the language that was selected in the pulldown. I know how to create the pulldown, but how do I change the properties of the TextField dynamically?
    2. I have a JButton that, when pressed, stores the language selected AND the characters in the JTextField into a Sybase Database. It also adds the same info to a JList that displays a list of text strings (in the language that they were entered) with their selected language (in English). My questions here are:
    - How should I store the text in the database (Hex or Unicode?)
    - Is it possible to have a JList display different languages on different lines within the list?
    - Is there a generic font that can display ALL types of languages?
    Any help (especially code samples) would be greatly appreciated. I have read the tutorials on this site, but I didn't see anything that would help.

    What do you mean when you say "the characters that come out in the JTextField are in the language that was selected in the pulldown"? The characters that are displayed in the field depend on the characters that the user inputs. There are no properties to change.
    2. I have a JButton that, when pressed, stores the
    language selected AND the characters in the
    JTextField into a Sybase Database. It also adds the
    same info to a JList that displays a list of text
    strings (in the language that they were entered) with
    their selected language (in English). My questions
    here are:
    - How should I store the text in the database (Hex
    Hex or Unicode?)I don't know Sybase, so there may be implementation-specific issues, but for the DBs that I know, it would only make sense to configure the DB to store eveything in Unicode. If you store hex values, the DB will not be able to perform locale-dependent collation, etc.
    >
    - Is it possible to have a JList display different
    ent languages on different lines within the list?
    Yes, why not? As long as everything is in Unicode, you can display anything you want anywhere you want (single characters alternating, for that matter)
    - Is there a generic font that can display ALL
    ALL types of languages?Well, there are Unicode fonts that support MOST languages, but I think there will always be edge cases with new character sets that have only recently been added to the Unicode standard.
    Any help (especially code samples) would be greatly
    appreciated. I have read the tutorials on this site,
    but I didn't see anything that would help.In that case I recommend that you find some of the books on Java internationalization and study them. A simple Google search will also give you some helpful links.

  • Problem with Multi File upload example, help needed

    I got the code from the following location.....
    http://www.adobe.com/devnet/coldfusion/articles/multifile_upload.html
    And I've got it to work to some degree except I cant get the file transfer to work when pressing, Upload.   Below is what my debugger outputs.  Any thoughts on how to fix this or even what it means?
    At the very bottom of this message is the upload.cfm code.......
    Thanks in advance for the help
    <html>
    <head>
      <title>Products - Error</title>
    </head>
    <body>
    <h2>Sorry</h2>
    <p>An error occurred when you requested this page.
    Please email the Webmaster to report this error.
    We will work to correct the problem and apologize
    for the inconvenience.</p>
    <table border=1>
    <tr><td><b>Error Information</b> <br>
      Date and time: 12/07/09 22:25:51 <br>
      Page:  <br>
      Remote Address: 67.170.79.241 <br>
      HTTP Referer: <br>
      Details: ColdFusion cannot determine how to process the tag &lt;CFDOCUMENT&gt;. The tag name may be misspelled.<p>If you are using tags whose names begin with CF but are not ColdFusion tags you should contact Allaire Support. <p>The error occurred while processing an element with a general identifier of (CFDOCUMENT), occupying document position (41:4) to (41:70).<p>The specific sequence of files included or processed is:<code><br><strong>D:\hshome\edejham7\edeweb.com\MultiFileUpload\upload.cfm      </strong></code><br>
      <br>
    </td></tr></table>
    </body>
    </html>
    <!---
    Flex Multi-File Upload Server Side File Handler
    This file is where the upload action from the Flex Multi-File Upload UI points.
    This is the handler the server side half of the upload process.
    --->
    <cftry>
    <!---
    Because flash uploads all files with a binary mime type ("application/ocet-stream") we cannot set cffile to accept specfic mime types.
    The workaround is to check the file type after it arrives on the server and if it is non desireable delete it.
    --->
        <cffile action="upload"
                filefield="filedata"
                destination="#ExpandPath('\')#MultiFileUpload\uploadedfiles\"
                nameconflict="makeunique"
                accept="application/octet-stream"/>
            <!--- Begin checking the file extension of uploaded files --->
            <cfset acceptedFileExtensions = "jpg,jpeg,gif,png,pdf,flv,txt,doc,rtf"/>
            <cfset filecheck = listFindNoCase(acceptedFileExtensions,File.ServerFileExt)/>
    <!---
    If the variable filecheck equals false delete the uploaded file immediatley as it does not match the desired file types
    --->
            <cfif filecheck eq false>
                <cffile action="delete" file="#ExpandPath('\')#MultiFileUpload\uploadedfiles\#File.ServerFile#"/>
            </cfif>
    <!---
    Should any error occur output a pdf with all the details.
    It is difficult to debug an error from this file because no debug information is
    diplayed on page as its called from within the Flash UI.  If your files are not uploading check
    to see if an errordebug.pdf has been generated.
    --->
            <cfcatch type="any">
                <cfdocument format="PDF" overwrite="yes" filename="errordebug.pdf">
                    <cfdump var="#cfcatch#"/>
                </cfdocument>
            </cfcatch>
    </cftry>

    Just 2 things in my test:
    1) I use no accept attribute. Coldfusion is then free to upload any extenstion.
    Restricting the type to application/octet-stream may generate errors. Also, it is unnecessary, because we perform a type check anyway.
    2) I have used #ExpandPath('.')#\ in place of #ExpandPath('\')#
    <cfif isdefined("form.filedata")>
    <cftry>
    <cffile action="upload"
                filefield="filedata"
                destination="#expandPath('.')#\MultiFileUpload\uploadedfiles\"
                nameconflict="makeunique">
            <!--- Begin checking the file extension of uploaded files --->
            <cfset acceptedFileExtensions = "jpg,jpeg,gif,png,pdf,flv,txt,doc,rtf"/>
            <cfset filecheck = listFindNoCase(acceptedFileExtensions,File.ServerFileExt)/>
    <!---
    If the variable filecheck equals false delete the uploaded file immediatley as it does not match the desired file types
    --->
            <cfif filecheck eq false>
                <cffile action="delete" file="#ExpandPath('.')#\MultiFileUpload\uploadedfiles\#File.ServerFile#"/>
                <cfoutput>Uploaded file deleted -- unacceptable extension (#ucase(File.ServerFileExt)#)</cfoutput>.<br>
            </cfif>
    Upload process done!
            <cfcatch type="any">
                There was an error!
                <cfdocument format="PDF" overwrite="yes" filename="errordebug.pdf">
                    <cfdump var="#cfcatch#"/>
                </cfdocument>
            </cfcatch>
    </cftry>
    <cfelse>
    <form method="post" action=<cfoutput>#cgi.script_name#</cfoutput>
            name="uploadForm" enctype="multipart/form-data">
            <input name="filedata" type="file">
            <br>
            <input name="submit" type="submit" value="Upload File">
        </form>
    </cfif>

  • Help needed I have a canon 40D. I am thinking of buying a canon 6D.But not sure that my len

    Hi all help needed I have a canon 40D. I am thinking of buying a canon 6D.
    But not sure that my lenses will work.
    I have a 170mm/ 500mm APO Sigma.
    A 10/20 ex  Sigma   HSM  IF.
    And a 180 APO Sigma Macro or do I have to scrap them and buy others.
    ALL Help will be greatly received. Yours  BRODIE

    In short, I love it. I was going to buy the 5DMark III. After playing with it for a while at my local Fry's store where they put 5DMII, 5DMIII and 6D next to each other, using the same 24-105L lens, I decided to get the 6D and pocket the different for lens later.
    I'm upgrading from the 30D. So I think you'll love it. It's a great camera. I have used 5DMII extensively before (borrowing from a close friend).
    Funny thing is at first I don't really care about the GPS and Wifi much. I thought they're just marketing-gimmick. But once you have it, it is actually really fun and helpful. For example, I can place the 6D on a long "monopod", then use the app on the phone to control the camera to get some unique perspective on some scenes. It's fun and great. GPS is also nice for travel guy like me.
    Weekend Travelers Blog | Eastern Sierra Fall Color Guide

  • Help needed to run JSTL 1.1 in Tomcat 6.0.16

    Hi All,Help needed to run JSTL 1.1 in Tomcat 6.0.16. I am trying to run the example given in http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html The example tries to connect to MySQL database from JSP using JSTL and JNDI Datasource.I am running the example using Eclipse 3.4.2 using Sysdeo plugin to start and stop Tomcat server from Eclipse IDE.
    My web.xml file has <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
    </web-app>
    and test.jsp has proper taglib directives
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    I have placed the jstl.jar and standard.jarof the jakarta-taglibs-standard-1.1.2.zip under E:\Deepa\workspace\DBTest\WebContent\WEB-INF\lib directory also placedcontext.xml file under E:\Deepa\workspace\DBTest\WebContent\META-INF and the content of context.xml is as below
    <Context path="/DBTest" docBase="DBTest"
    debug="5" reloadable="true" crossContext="true">
    <Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000"
    username="deepa" password="mysql" driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost:3306/javatest?autoReconnect=true"/>
    </Context>
    Now while running the example, Eclipse creates one DBTest.xml file under C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost
    which has the following line:
    <Context path="/DBTest" reloadable="true" docBase="E:\Deepa\workspace\DBTest" workDir="E:\Deepa\workspace\DBTest\work" />
    I am getting the following error when running http://localhost/DBTest/WebContent/test.jsp
    in Browser:
    <HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or the jar files deployed with this application
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
    org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315)
    org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)
    org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:431)
    org.apache.jasper.compiler.Parser.parseDirective(Parser.java:494)
    org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
    org.apache.jasper.compiler.Parser.parse(Parser.java:138)
    org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    In the Tomcat Server console, I am getting the following error:
    INFO: Server startup in 7295 ms
    May 20, 2009 6:36:48 AM org.apache.jasper.compiler.TldLocationsCache processWebDotXml
    WARNING: Internal Error: File /WEB-INF/web.xml not found
    May 20, 2009 6:36:48 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or the jar files deployed with this application
    what is the problem with my code?
    When running the same example, by creating a local server in Eclipse(creating new Server connection pointing to same Tomcat 6.0 installation) it runs fine without any error.

    Hi evnafets,
    Wow, very helpful information, great insight into working of Eclipse. Thanks a lot.
    I have one more question. I have a context.xml file under {color:#0000ff}E:\Deepa\workspace\DBTest\WebContent\META-INF{color} folder and that has the Resource element to connect to MySQL database:
    {code{color:#000000}}{color}<Context path="/DBTest" docBase="DBTest" debug="5" reloadable="true" crossContext="true">
    <Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="deepa" password="mysql" driverClassName="com.mysql.jdbc.Driver"
    {color:#0000ff}url="jdbc:mysql://localhost:3306/javatest?autoReconnect=true"/>{color}
    {color:#0000ff}</Context>{color}As usual when running application in local Tomcat server of Eclipse, this data source works fine. But when I run the application on Tomcat, by starting Sysdeo plugin from Eclipse, the DBTest.xml file created in C:\Tomcat 6.0\conf\Catalina\localhost has the context entry as<Context path="/DBTest" reloadable="true" docBase="E:\Deepa\workspace\DBTest\WebContent" workDir="E:\Deepa\workspace\DBTest\work">
    </Context>The<Resource> element I have specified in the context.xml of \WebContent\META-INF folder is not taken into account by Tomcat and it gives the following error:May 21, 2009 5:20:04 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException_: Cannot create JDBC driver of class '' for connect URL 'null'"
    _at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(_QueryTagSupport.java:276_)
    at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(_QueryTagSupport.java:159_)
    at org.apache.jsp.test_jsp._jspx_meth_sql_005fquery_005f0(_test_jsp.java:113_)
    at org.apache.jsp.test_jsp._jspService(_test_jsp.java:66_)
    at org.apache.jasper.runtime.HttpJspBase.service(_HttpJspBase.java:70_)
    at javax.servlet.http.HttpServlet.service(_HttpServlet.java:717_)
    at org.apache.jasper.servlet.JspServletWrapper.service(_JspServletWrapper.java:374_)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(_JspServlet.java:342_)
    at org.apache.jasper.servlet.JspServlet.service(_JspServlet.java:267_)
    at javax.servlet.http.HttpServlet.service(_HttpServlet.java:717_)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(_ApplicationFilterChain.java:290_)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(_ApplicationFilterChain.java:206_)
    at org.apache.catalina.core.StandardWrapperValve.invoke(_StandardWrapperValve.java:233_)
    at org.apache.catalina.core.StandardContextValve.invoke(_StandardContextValve.java:191_)
    at org.apache.catalina.core.StandardHostValve.invoke(_StandardHostValve.java:128_)
    at org.apache.catalina.valves.ErrorReportValve.invoke(_ErrorReportValve.java:102_)
    at org.apache.catalina.core.StandardEngineValve.invoke(_StandardEngineValve.java:109_)
    at org.apache.catalina.connector.CoyoteAdapter.service(_CoyoteAdapter.java:286_)
    at org.apache.coyote.http11.Http11Processor.process(_Http11Processor.java:845_)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(_Http11Protocol.java:583_)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(_JIoEndpoint.java:447_)
    at java.lang.Thread.run(_Thread.java:619_)
    {code}
    So to overcome this error I had to place the <Resource> element in DBTest.xml under C:\Tomcat 6.0\conf\Catalina\localhost {color:#000000}and then it works fine. {color}{color:#ff0000}*Why is the context.xml file in META-INF not considered by Tomcat server using Sysdeo Plugin?*
    *Thanks,*
    *Deepa*{color}
    {color}
    Edited by: Deepa76 on May 26, 2009 9:32 PM

  • EDI IDOC generation for interface with Vendor software help needed.

    EDI IDOC help needed.
    We are NOT an EDI shop, but have a project to output data to Sales Force.com
    Sales Force requests IDOC output - eg. 810 Outbound Invoice.
    We will need to do a historical load of Orders/Quotes/Invoices from the past 2 years.
    Is there a function module or series of FM's that are used to generate the E2EDKxxxxx type segments?
    I have been testing using the IDOC_OUTPUT_INVOIC and IDOC_OUTPUT_ORDRSP FM's, but they generate segments begining with E1EDKxxxxx.
    Basicall we have a report program that the user enteres in the date range of Order/Quotes/Invoices they wish to extract, the the program needs to output a flat file (.txt) on the server which is then picked up by Sales Force.com.
    Also, is there a way to have in the Partner Profile a generic Partner under the "Type KU" that can be used for all orders/invoices so I don't have to create a KU Partner Type for each and every Sold-To customer we have?
    I am very new to EDI so any help would be greatly appreciated.
    Thanks.
    Scott.

    Hi Scott,
    We will need to do a historical load of Orders/Quotes/Invoices from the past 2 years.
    I know it's very tempting to use an interface for such loads if you anyhow have to create one. However, often the volume alone speaks against interface usage for such scenarios.
    Is there a function module or series of FM's that are used to generate the E2EDKxxxxx type segments? I have been testing using the IDOC_OUTPUT_INVOIC and IDOC_OUTPUT_ORDRSP FM's, but they generate segments begining with E1EDKxxxxx.
    Well, the E2* segments basically reflect the external name of the IDoc segment, whereas the function modules you're referring to basically just create an internal version of the IDoc. Once the IDoc framework then passes the IDocs to the partner, the segment names usually (depends on how the IDocs are passed on) get converted to their external name. If there are multiple versions of a segment, then the version number will be appended to the segment name.
    Note that IDoc segment definitions are only partially stored in the data dictionary. If you want to see all versions you should always use transaction WE31 to look at segments. There you can also see for example for E1EDK01 the several versions and when you then use in SE37 function module SEGMENT_EXTERNAL_NAME_GET you will see what SAP produces as the external name for segment E1EDK01. This function module is basically the one that handles the segment name translations.
    Ignore the comments for subsystem, this is basically an option in SAP to possibly trigger further external tools (e.g. mapping etc.) for handling the outbound IDocs.
    Again, the funny thing is that via the WE30 transaction, if i put in INVOIC02 as the Obj. name and see the segments, i can see that E2EDK01 there is a version 005, but if i go to SE11 and put in E2EDK01005 structure line and i get a "not found". We just have up to E2EDK01002.
    In the old days SAP used to generate E1, E2 and E3* structures in the data dictionary (SE11). The E1* structure reflected the character type representation of an IDoc segment, whereas the other two (definition and documentation) contained actual references to data elements (e.g. if you used a quantity field). However, in newer releases those dictionary structures (E2* & E3*) are no longer generated, because they're superfluous (meta data defined via WE31 is sufficient).
    Cheers, harald

  • Help Needed in Creating Java Class and Java Stored Procedures

    Hi,
    Can anyone tell how can i create Java Class, Java Source and Java Resource in Oracle Database.
    I have seen the Documents. But i couldn't able to understand it correctly.
    I will be helpful when i get some Examples for creating a Java Class, Java Source and Stored Procedures with Java with details.
    Is that possible to Create a Java class in the oracle Database itself ?.
    Where are the files located for the existing Java Class ?..
    Help Needed Please.
    Thanks,
    Murali.v

    Hi Murali,
    Heres a thread which discussed uploading java source file instead of runnable code on to the database, which might be helpful :
    Configure deployment to a database to upload the java file instead of class
    The files for the java class you created in JDev project is located in the myworks folder in jdev, eg, <jdev_home>\jdev\mywork\Application1\Project1\src\project1
    Hope this helps,
    Sunil..

  • Help need to script(urgent)

    hai everybody...
    i ahve written a javascript for popup a new
    window...this is my script
    script
    function open()
    if(portal40.wwctx_api.get_user=='JAYANTHAN')
    window.open('http://suntechchn:7777/pls/portal40/ATCMIS.ENQUIRY_REP.show?p_arg_names=_show_header&p_arg_values=YES&p_arg_names=_max_rows&p_arg_values=25&p_arg_names=_portal_max_row s&p_arg_values=25','new_page','width=1500,height=550,scrollbars=yes');
    else
    window.open('http://suntechchn:7777/pls/portal40/ATCMIS.ENQ_REPORT.show?p_arg_names=_show_header&p_arg_values=YES&p_arg_names=_max_rows&p_arg_values=25&p_arg_names=_portal_max_rows &p_arg_values=25','new_page','width=1000,height=950,scrollbars=yes');
    open();
    but it doesn't open the new window...
    for this i have created two reports,the above links are the report links...if it satisfy the condition then the first link lead to the
    first report if not then second report
    please help need ....
    thansk in advance
    leena
    null

    This example will read and put the Authors name to the ESTK console and write the new details back to the document.
    #target bridge
    loadXMPLibrary();
    var thumb = app.document.selections[0];
    if(thumb.hasMetadata){
            var selectedFile = thumb.spec;
      var myXmpFile = new XMPFile( selectedFile.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE);
      var myXmp = myXmpFile.getXMP();   
      var arrItem='';
      var items = myXmp.countArrayItems(XMPConst.NS_DC, "creator");
       for(var i = 1;i <= items;i++){
    arrItem += myXmp.getArrayItem(XMPConst.NS_DC,  "creator", i);          
        $.writeln(arrItem);
    var Author = "This is my new Author";
    myXmp.deleteProperty(XMPConst.NS_DC, "creator");
    myXmp.appendArrayItem(XMPConst.NS_DC, "creator", Author, 0,XMPConst.ARRAY_IS_ORDERED);
    if (myXmpFile.canPutXMP(myXmp)) {
        myXmpFile.putXMP(myXmp);
             myXmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);
    unloadXMPLibrary();
    function loadXMPLib(){
    if (ExternalObject.AdobeXMPScript == undefined) {
        ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    function unloadXMPLib(){
       if( ExternalObject.AdobeXMPScript ) {
          try{
             ExternalObject.AdobeXMPScript.unload();
             ExternalObject.AdobeXMPScript = undefined;
          }catch (e){ }

  • Help need to post the datas to Tr.code - IW31

    Hi Experts,
                    <b>I have created a Zcust_req_info table and added several fields like
    Cust_req_number
    cust_req_details
    cust_address
    and I have added record to the table and now the table is filled with some datas.
    I have to upload the datas to IW31 tr code, where I have to create work request automatically. </b>
    Could anyone help me,
              <b> "FULL POINTS WILL BE AWARDED FOR THE HELPFUL ANSWERS"</b>
    Thanks and regards,
    Sunil K Shetty
    [email protected]

    Hi Sunil,
    best is to user Batch Input or Call Transaction to bring data to Tcd. IW31.
    You can use the Batch Input recorder (Tcd. SHDB) to generate example code needed für this transaction.
    Klaus

  • ONKYO TX-SR805 Set-up Menu HELP Needed

    This is a LONG post, but I would appreciate if you would read it and respond to it.  The settings That are setup might not be the CORRECT settings.  If you think a different setting should be made, please let me know.
    Also right now I only have 2 front speakers (NHT VT-1A), 1 middle( NHT VT-1C), and a NHT SW12 Subwoofer.  I will be hooking up 2 or 4 more speakers for the REAR.
    Here are the settings on my TX-SR805 receiver on the set-up menu.  I could use some help to see if they need set to something else.
    2.2 Speaker Config
          Subwoofer       yes
          Front            70Hz
          Center          90Hz
    LPF of LFE        80Hz THX
    2.6 THX Audio Setup
           THX subwoofer  YES   I don't know if mine is or not
           BGC                    OFF  Not sure what this BGC means
    3. AUDIO ADJUST
    3.1  Tone Control
           Front    Bass      -1dB
                        Treble   +1dB
          Center  Base      +2dB
                        Treble   +7db
         Subwoofer Base  +7
    3.2 DIRECT
          Delay Enable
          DSD                NO   Not sure what DSD is 
    3.3 MULTIPLEX/MONO
          Multiplex
          Input CH       Main/Sub
          Mono
          Input CH         L+R
          Output Speaker  L/R
    3.4 PLIIx/Neo:6
            PLIIx Music   (2ch input)
            Panorama        ON
            Dimension       +1
            Center Width    3
    Neo: 6 Music
            Center Image   5
    3.5 DOLBY EX
            Dolby EX        AUTO
    3.6 THEATER-DIMENSIONAL
            Listening Angle   Narrow
    3.7 LFE LEVEL
            Dolby Digital      -10dB
            DTS                     -10dB
            Multich PCM      -10dB
            Dolby True HD   -10dB
            DTS-HD Master Audio  -10dB
            DSD                     -10dB
    4. SOURCE SETUP
           CABLE/SAT
    4.1  INTELLIVOLUME     +4Db
       .2 A/V SYNC            0 msec
       .3  NAME EDIT         Blank
    5.   LISTENING MODE PRESET
    5.1 DVD
           Analog/PCM      NOT SURE WHAT TO SET HERE
           Dolby Digital      NOT SURE WHAT TO PUT HERE
           NOT SURE WHAT TO PUT FOR ANY OF THESE LISTENING MODE PRESET
    5.8 TUNER (ANALOG)      Neural THX 5.1 is set on mine. Is this correct?
             CD                           ?
    6.  MISCELLANEOUS
    6. 1  VOLUME SETUP
              Volume Display              Relative
               Muting Level               -40dB
               Maximum Volume       +10dB
               Power on Volume        -22dB
               Headphone Level        +2dB
    6.2  OSD SETUP
               Immediate Display       OFF
               Monitor Type              16:9
               Display Position           TOP
    7.  HARDWARE SETUP
    7.4   ANALOG MULTICH
               Subwoofer Input Sensitivity    0
    7.5   HDMI
            ALL under here are     ENABLE
    Solved!
    Go to Solution.

    I gave you some answers in your original post. I wish you didn't start a new one. Here is what I posted.
    Re: ONKYO TX-SR805 Set-up HELP Needed[ New ]
    Options
    Mark as New
    Bookmark
    Subscribe
    Subscribe to RSS Feed
    Highlight
    Print
    Email to a Friend
    Report Inappropriate Content
    01-21-2010 08:24 AM
    Unfortunately this is very difficult because the top half of your post, your really the only one that can answer what the setup should be.  The adjustments are made based on the acoustics of your room and how everything sounds noone can really give you info on it because every house, and room has different acoustics.  The walls, insulation, carpet or bare floors, basement or main floor are just some examples of what can make a difference in sound reproduction.   By the way NHT (Now Hear This) are excellent speakers.  For bass and treble, the music I listen too requires a high treble content so I usually have it at 7 out of 10 but my bass is at 4 out of 10.   The sub base should be fine where it is.
    Did your receiver come with an Audessy mic for calibration.  I would use that for a basic setup and go from there I am not sure if on your unit it will do frequecy but I think it did.
    Your volume settings look fine again personal preference there is right or wrong.
    For you listening mode Preset  you should have an auto setting I am at work so it may take a coule of hours for me to get back to you as I have to go through your manual and see what you would set it up with so please bare with me. I will list the info as I read it so it may not be in the order you have it.
    I will have to make a second post since I can't go back and edit this one.

  • Please help-- need to populate a jtable at runtime

    Hello all,
    i have this problem:
    i have to populate a jtable at runtime.i take the data
    from different buttons and from a jlist.i will focus
    on the jlist here because the problem is elsewhere
    after i select the particular items from the list i put them in a 2d array. the problem is that this array
    might have null entries.for example, according to the
    list item selections, my array might look like this:
    data[0][0] = "somedata"
    data[0][1] = ""
    data[0][2] = "otherdata"
    and so on
    when i try to add row to the table it adds the
    data[0][1] as well (tablemodel.addRow(data[0]);)
    is there any way to make it not print the elements
    that have null values?
    the problem is that the number of rows and the number of columns of data is generated at runtime and it can be up to data[6][200] so if i only put data in say
    data[45] and data[i][195] i only want to print
    this values in the jtable's rows and not the whole
    data[i]
    i try to put the results of data[][] that are not null in a new array but it doesnt work.here is how i try to do this:
    for (int i=0;i<data[0].length;i++) {
    for (int b=0;b<data.length;b++) {
    while (data[b][i] != null)
    datanew=data;
    when i try to add row datanew[b] in the jtable i see the same result (some columns are empty)
    if i try to print data[b] i see something like "Ljava.jang.string:2@#435"
    but if i print data[b][i] for the i's that are not null then i see the right results.
    is there any way i can do it ?maybe exceptions handling? i dont know.
    any kind of help would be greatly appreciated.
    i am a begginer in java, i hope i dont sound ridiculous.
    thank you in advance

    thanks for your reply everybody
    well i have changed the algorithm a little and now it works. however, i have a similar problem right now
    as i said in the beggining the data will be selected both from a jlist and some buttons. now the list work.
    the list has items that relate to buttons.
    so now i have one more condition that will show only the
    results of the list that relate to the buttons.
    i have done this by using a boolean when each button is
    selected.
    the problem now is that i have an array that have null rows (instead of null columns that i had before)!!
    even though i can add them to the jtable normally since
    they are rows, i dont want to show empty rows.
    so i want to create a new array that will have as rows
    all the rows of the first array that contain data.
    Here is my algorithm that generates data according to jlist and buttons selection:
    Object[] selected_items = charList.getSelectedValues();
    for (int j=0;j<selected_items.length;j++)
    tablemodel.addColumn(selected_items[j]);
    for (int k=1;k<data[0].length;k++){
    if ( selected_items[j].equals(data[0][k]) ){
    for (int b=0;b<=data.length-2;b++){
    if (authors_boolean_array)
    data3[b][j]=data[b+1][k];
    else System.out.print("no author ");
    else System.out.print("no ");
    System.out.println("");
    doesnt matter how it works. the result is that it ends
    with a data3[b][j] array that can be up to data3[6][200]
    and might have empty rows
    so i want a new array say data4[][]
    for example i need to find a way to do something like this:
    data4[0][0] = data3[0][0];
    data4[0][1] = data3[0][1];
    data4[1][0] = data3[2][0];
    data4[1][1] = data3[2][1];
    i tried something like this: (count is the number of the selected buttons)
    for (int j=0;j<selected_items.length;j++){
    for (int b=0;b<=data.length-2;b++) {
    if (data3[b][j] != null) {
    for (int c=0;c<count;c++) {
    for (int d=0;d<selected_items.length;d++) {
    data4[c][d]=data3[b][d]; // (*)
    else System.out.println("data4 null");
    but it doesnt work because b isnt increased as need
    at (*) line
    well i know this is causing a hedaque so i wont be suprised if i dont receive any answer.however, since there are always some kind people arround i thought i could give it a try as it would save me precious time.
    thank you all for your time

  • Help needed with java

    Hello everyone
    I'm a Student and new to java and I have been given a question which I have to go through. I have come across a problem with one of the questions and am stuck, so I was wondering if you guys could help me out.
    here is my code so far:
    A Class that maintains Information about a book
    This might form part of a larger application such
    as a library system, for example.
    @author (your name)
    *@version (a version number or a date)*
    public class Book
    // instance variables or fields
    private String author;
    private String title;
    Set the author and title when the book object is constructed
    public Book(String bookAuthor, String bookTitle)
    author = bookAuthor;
    title = bookTitle;
    Return The name of the author.
    public String getAuthor()
    return author;
    Return The name of the title.
    public String getTitle()
    return title;
    and below are the questions that I need to complete. they just want me to add codes to my current one, but the problem is I don't know where to put them and how I should word them, if that makes sense.
    Add a further instance variable/field pages to the Book class to store the number of pages in the book.
    This should be of type int and should be set to 0 in the Constructor.
    Add a second Constructor with signature
    public Book(String bookAuthor, String bookTitle, int noPages) so it has a third parameter passed to it as well as the author and title;
    this parameter is used - obviously?? - to initialise the number of pages.
    Note: This is easiest done by making a copy of the existing Constructor and adding the parameter.
    Add a getPages() accessor method that returns the number of pages in the book.
    Add a method printDetails() to your Book class. This should print out the Author title and number of pages to the Terminal Window. It is your choice as to how the data is formatted, perhaps all on one line, perhaps on three, and with or without explanatory text. For instance you could print out in the format:
    Title: Robinson Crusoe, Author: Daniel Defoe, Pages:226
    Add a further instance variable/field refNumber() to your Book class. This stores the Library's reference number. It should be of type String and be initialised to the empty String "" in the constructor, as its initial value is not passed in as a parameter. Instead a public mutator method with the signature:
    public void setRefNumber(String ref) should be created. The body of this method should assign the value of the method parameter ref to the refNumber.
    Add a corresponding getRefNumber() accessor method to your class so you can check that the mutator works correctly
    Modify your printDetails() method to include printing the reference number of the book.
    However the method should print the reference number only if it has been set - that is the refNumber has a non-zero length.
    If it has not been set, print "ZZZ" instead.
    Hint Use a conditional statement whose test calls the length() method of the refNumber String and gives a result like:
    Title: Jane Eyre, Author: Charlotte Bronte, Pages:226, RefNo: CB479 or, if the reference number is not set:
    Title: Robinson Crusoe, Author: Daniel Defoe, Pages:347, RefNo: ZZZ
    Modify your setRefNumber() method so that it sets the refNumber field only if the parameter is a string of at least three characters. If it is less than three, then print an error message (which must contain the word error) and leave the field unchanged
    Add a further integer variable/field borrowed to the Book class, to keep a count of the number of times a book has been borrowed. It should (obviously??) be set to 0 in the constructor.
    Add a mutator method borrow() to the class. This should increment (add 1 to) the value of borrowed each time it is called.
    Include an accessor method getBorrowed() that returns the value of borrowed
    Modify Print Details so that it includes the value of the borrowed field along with some explanatory text
    PS. sorry it looks so messey

    1. In the future, please use a more meaningful subject. "Help needed with java" contains no information. The very fact that you're posting here tells us you need help with Java. The point of the subject is to give the forum an idea of what kind of problem you're having, so that individuals can decide if they're interested and qualified to help.
    2. You need to ask a specific question. If you have no idea where to start, then start here: [http://home.earthlink.net/~patricia_shanahan/beginner.html]
    3. When you post code, use code tags. Copy the code from the original source in your editor (NOT from an earlier post here, where it will already have lost all formatting), paste it in here, highlight it, and click the CODE button.

  • Help needed with Report Design

    Hi All,
    Here is the requirement.
    Period Type(holds 2 values) : Payment and Vested.
    we have field 'Total Days' which is calculated based on "User Selected" Period Type.
    For example, When Period Type is Payment,
    If start date is less than or equal to grant date and end date is less than or equal to vest date, then calculation is (End Date - Grant Date)+1
    If start date is greater than grant date and end date is less than or equal to vest date, then calculation is (End Date - Mobility Start Date)+1 (similarly 2 more if conditions) ...we have similar calculation for Period Type - 'Vested'.
    This Period Type is a multiselect Prompt. How can this be achievable.
    Any thoughts will be greatly appreciated.
    Thanks.

    I simply did as i got a tip on FB to do
    quote from adobe themselves on facebook "Adobe Illustrator You might also want to try asking on our forums as there are many people that can help there as well! http://forums.adobe.com/community/illustrator/illustrator_general"
    sry if it was wrong of me, simply thought there might be someone nice out there to give a helping hand
    Date: Tue, 5 Jun 2012 13:41:48 -0600
    From: [email protected]
    To: [email protected]
    Subject: Help needed with a design!
        Re: Help needed with a design!
        created by in Illustrator - View the full discussion
    This really isn't the place to ask for free services.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4467790#4467790
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4467790#4467790. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Illustrator by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • About Java 2 opaque font color question, help needed!

    About Java 2 opaque font color question, help needed!
    I was trying to test opaque font (the string has a foreground color and a background color), but i can't find the method for doing that.
    i can change foreground by Graphics2D.setPaint(Color.black).
    Anybody know how to change the background of the string?
    Thanks!

    Hi. The way I'd do it would be to use the font metrics to find the length of a string and draw a rectangle and then drawstring over the rectangle. If you want an example, I can post it although I suspect theres a better way.

  • New Nokia E7 just bought in Italy * help needed to...

    I just bought a new E7
    Very nice and light but I let my old E90 and I need some help to solve some problems
    How can I
    *If I want to check mail manually there is nowhere a function or option or button "check mail" !!
    *In my address book of E90 I could add some details on the descriptions. I can't there ! If for an example I wanted to make difference etween more mobiles number on a name I could put on E90 mobile perso or mobile night or mobile urgency 
    There I can't add any detail on the voices on the phone !
    And when I transferred from E90 all those details are now lost and I have the name with 5 mobiles numbers without any tag or note !
    *Other very big problem, when you send mails (not sms) there is no folder "sent mails" anywhere !!! You can't keep you sent mails !!!
    in italian
    * Nei vari indirizzi mail come faccio a fare il controllo mail manualmente ? Non esiste nelle opzioni o da nessuna parte il tasto check mail o similare
    * Nella rubrica a differenza sempre del mio ultimo E90 se voglio mettere un dettaglio su le varie voci non posso. Per esempio Mario Rossi ha tre numeri cellulari dove prima mettevo numero celliulare giorno, numero urgenze o numero riservato e adesso non posso. Oltre ad avermi nel trasferimento dei dati dall e90 a e7 perso tutti i "dettagli" della rubrica qui sopra spiegati. Mi ha trasferito i numeri ma senza i dettagli che avevo aggiunto
    * Importante per le mails quando invio una email NON appare da nessuna parte una cartella o folder SENT MAILS. Assurdo ma non c e una cartella mails inviate ! appare sms inviati ma da NESSUNA parte mails inviate !!!

    no news from Nokia...
    Re: New Nokia E7 just bought in Italy * help needed to solve problems
    03-May-2011 05:15 PM
    Please help answering few functions missing !!
    1  Any news from Nokia for the SENT MAIL patch release ???
        Still got empty sent mails and even NO possibility to make automatically a copy in personal   mail of what we send !
    2      Other patch ALARM SETTINGS  CANT PUT AN alarm for tomorrow for example and can t suspend a daily weekly alarm but can oly cancel and after need to reinsert it
    3    Other info, is it possible to PROGRAM text messages SMS. I f you want to write NOW an SMS text mesage and program to be sent automatically at example three hours later or an hour the day after or what else is it possible ??
    4  When you send a mail what is the function FOLLOW UP or ACTIVATE FOLLOW UP ???
    5  any news to modify tags in address book with peronal tags ?

  • Offscreen drawing and Events help needed!!

    Hi,
    I have run into a problem... I need to create a rather complicated image with lots of interactivity. As a simplified example, I need to add a grid, a histogram, and a pie chart on the same JPanel.
    Normally, you create your images in your class, set up listeners on your graphics objects and voila, clickable images.
    But I want to create all my images in a separate class, attach listeners there and then add that image and its listeners to my JPanel. Otherwise my class gets huge and painful- some of these objects (the histogram for example) need to establish URL connections, execute JDBC querys, be threaded, etc. According to what I know about OOP, these should certainly be in their own class.
    So, if I wanted to draw a 10x10 grid, I could simply do:
    DrawGrid grid = new DrawGrid( 10, 10 ); In DrawGrid, I would have listeners on each cell, so I can keep track of what was clicked.
    Adding grid to my JPanel also adds the listeners associated with grid...
    I initially tried this as a separate JPanel, and then to just add the new JPanel to the 'central' one, but this wont work because some of my graphics must overlap each other- and I couldnt get graphics to overlay multiple JPanels.
    I also created my graphic by extending BufferedImage and then doing:
    g2d.drawImage( buffer1, 0, 0, this);
    g2d.drawImage( buffer2, 0, 0, this);
    Which worked for the images- but none of the listeners worked. :(
    I really need some help on this one.
    Also what are the best books for Java 2D graphics and interacting with them??? I gotta buy one.
    Thanks!
    Bryan

    From what I understand, you want to have multiple images on one surface and have them all contain their own mouse listeners. As far as i know this is impossible (but what do i know:)
    What you could do is have a single mouse listener and subdivide the surface whenever images are placed there. So when the user clicks it checks to see in which section was clicked, then forwards that info to the appropriate object. And to deal with overlapping just have the top image have control over that area. If you needed to get more complex wich your bounderies you could have an array of pixels representing the surface and flag them bassed on the objects in that area.
    It may get a bit slow if your boundaries are too complex

Maybe you are looking for