Help for the Newbie

Eh, I might hang around a while, so you might as well know that I'm new to this stuff, and I may need a lot of help over time. I guess that's what these forums are for though right? Anyway, my future goal is gaming, and I might look around the game section once I become more skilled. The only game I created was in um.... coughTruebasic*cough*. Anyway, on to my first question:
I've got my simple little test program(Application, not applet): A JFrame, and a button on it. When I hit this button, it calls the repaint() method of a subclass of JPanel, which, essentially, just paints an image on itself. Everything works except for one thing. When the picture is painted, the only thing that shows up is a tiny little square next to the button a few pixles wide. This is appearently the corner of my picture. Any idea on how to fix this?

Make sure you set your JPanel's PrefereSize to somehing like
the Image's width and height.
Also, maybe play with the Layout. If this all looks greek,
then look to the Tutorials (left side of page) and APIs
for details. The APIs should be your best friends.

Similar Messages

  • Help for the Newb?

    Ok, I'm new to Java and I need to know a few things.
    First off, I need to know what Java can handle. I want to make a game with super high quality 2D graphics, probably prerendered 3D graphics. The standard resolution would be high, 1024 x 768 minimum. Would I be able to program this in Java with no problems?
    Secondly, I need to know if I would be able to play AVIs or other videos as my game was played. Animations for particular points in the game and the like. These would also be prerendered and high resolution.
    Thanks in advance.

    In my experience (granted it is all c/c++/vb with directX) 3d is easier once you have the complexities of the engine behind you. Building the full 3d engine is much more complex than a 2d engine. However, once you have the engine built, a 3d game will come together with less work than a 2d game. This is because most of what you do in a 2d game is repeated process, such as creating 8 images for a character who can face 8 different directions. While in 3d world you plop your 3d model down (usually designed in some nice 3d editor) and then you have a camera which handles all possible views of said 3d model.
    The question would be, can you come up with a 3d engine?

  • F4 help for the batch field in VL02N transaction

    We have upgraded our system from 4.6 to ecc 6.0 .In 4.6 the f4 help for the batch had " Batch selection via plant/Material/Storage location/Batch " which is not there in ECC 6.0.
    Please tell us the procedure to add in the existing  search help H_MCHA in ECC 6.0
    Thanks
    Aruna

    Hi Aruna.
      Create ur own search help using se11 tcode for required fields.
      Thanks & Regards,
    Kiran.
    Plz give rewards if and only if it is helpfull.

  • F4 help for the field requisitioner in ME51n

    hi friends,
    i got a requirement to give F4 help for the filed  requisitioner in Me51N which will be in item level .
    can any one give me the exit, badi, enhancement-point for this.
    thanks and regards,
    venkat.

    not answered

  • F4 HELP  for the field

    HI all,
    in the report selection screen i have one field for which F4 HELP  doesnt exits, even in the table for that field F4 HELP is not there but the user requests me to get the F4 HELP for that field in the selection screen .
    please help how to get F4 HELP  for the field
    thanks in advance.

    The following are the options for F4 help
    Code:
    PARAMETERS: p_ccgrp LIKE rkpln-ksgru. "Cost Center Group
    *Input help for Cost Center Group
    AT SELECTION-SCREEN ON VALUE-REQUEST   FOR p_ccgrp.
    TYPES: BEGIN OF ty_ccenter_group,
    setname TYPE setnamenew,
    descript TYPE settext,
    END OF ty_ccenter_group.
    DATA: it_ccenter_group TYPE TABLE OF ty_ccenter_group.
    CLEAR it_ccenter_group.
    SELECT a~setname
    b~descript
    INTO TABLE it_ccenter_group
    FROM setheader AS a INNER JOIN
    setheadert AS b ON
    asubclass EQ bsubclass AND
    asetname EQ bsetname
    WHERE a~setclass EQ '0101' AND
    b~langu EQ sy-langu.
    CALL FUNCTION 
    'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    ret field        =  'SETNAME'
    dynpprog     =  v_repid
    dynpnr         =    SY-DYNR
    dynprofield = 'P_CCGRP'
    value_org    = 'S'
    TABLES
    value_tab   = it_ccenter_group.
    F4IF_FIELD_VALUE_REQUEST:
    This FM is used to display value help or input from ABAP dictionary. We have to pass the name of the structure or table (TABNAME) along with the field name (FIELDNAME). The selection can be returned to the specified screen field if three
    parameters DYNPNR, DYNPPROG, DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    TABNAME = table/structure
    FIELDNAME = 'field name'
    DYNPPROG = SY-CPROG
    DYNPNR = SY-DYNR
    DYNPROFIELD = 'screen field'
    IMPORTING
    RETURN_TAB = table of type DYNPREAD
    Getting F4 help based on other  field  .
    Suppose  if there  are  2 fields on selection screen  user name and Purchasing Document  and  the case is getting values of  Purchasing Document Number  based on  user name
    Code:
    TYPES:   BEGIN OF ty_match_nast,
                    objky TYPE na_objkey,
                    END OF ty_match_nast.
    Data: it_match_nast   TYPE STANDARD TABLE OF ty_match_nast.
    Data: it_dypr_val   TYPE STANDARD TABLE OF dynpread.
    DATA: wa_dypr_val  TYPE dynpread.
    DATA: it_return TYPE STANDARD TABLE OF ddshretval.
    Case when only username value is entered.
           SELECT objky
            FROM   nast
            INTO  TABLE it_match_nast
             WHERE kappl  = c_ef
             AND   kschl = c_neu
             AND   usnam = wa_dypr_val-fieldvalue.
          ENDIF.
    *Read User name  on  selection screen field value
      CLEAR wa_dypr_val.
      REFRESH it_dypr_val.
      wa_dypr_val-fieldname = 'P_UNAME'.      "User name
      APPEND wa_dypr_val TO it_dypr_val.
    *FM to get the value
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname             = sy-repid
          dynumb             = sy-dynnr
          translate_to_upper = 'X'
        TABLES
          dynpfields         = it_dypr_val_h.
    *Pass the values to f4 table
       CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield     = u2018OBJKY'
            dynpprog    = sy-repid
            dynpnr      = sy-dynnr
            dynprofield = 'P_EBELN'
            value_org   = 'P'
         TABLES
            value_tab   = it_match_nast
            return_tab  = it_return.

  • How to display Help for the message in our program

    Hi Experts,
    Do any one know how to display the HELP for the Message in our ABAP program? Just like the user click the Long Text button in SE91.Do we have any function modules or Class method to do that? Thanks in advance.
    Joe

    Hi Joe,
    While creating a message class in se93, theres a button (documentation) on the application tool bar. Click on that and you will be lead to a text editor where you can fill in the necessary documentation for the message you have created.

  • Need help for the $200 promo rebate for trade-in of I Phone 4

    Need help for the $200 promo rebate for trade-in of I Phone 4.  Unable to preregister when I ordered the new 6  in September.  Now can not contact VZW recycle program regarding.

    When I ordered my phone on Sept. 13th in a Verizon store, I had to ask the salesman how I went about getting the $200 rebate. He said shipping materials would come with the new phones. When I received the confirmation e-mail of my order, it contained a link for the rebate. Fortunately I clicked on the link, filled out the form online, and received the packing materials to send my phone in shortly after. My phones came in on Oct. 14th and I sent 3 of them back. So far I have received a gift card for $200 for 2 of the phones; the other is showing not received. I don't know what your situation is, but I think the promotion ended Oct. 15th. If I had listened to the salesman I think I would be out of luck as well. I hope I am wrong for your sake.

  • Issue with F4 help for the variables for the 0CALWEEK and 0CALMONTH

    We have custom IOs which refers to 0CALWEEK and 0CALMONTH.In the report we have variables on the custom IOs.For these variables F4 help does not giving any values .I tested with  0CALWEEK also. For the 0CALWEEK also F4 help does not working..Please help me on this issue.The variable I haveused d to test with 0CALWEEK is 0S_CWEEK.
    Edited by: Sudhakar Are on Jul 6, 2010 4:17 PM

    Hi Pramod,
    I don't know how it is done in infoset. But if you have a context node and attribute for the field which is displayed in the view, create a custom dictionary search help for the field you want. Design the search help as per your requirements (what fields to be displayed etc..).
    In the context attribute of that field property, select 'Dictionary search help' in the Input help mode. Enter the name of your custom search help here.
    Thanks & Regards,
    Satheesh.

  • F4 help for the screen fields in module pool program

    Hi All,
      I have a requirement that, i want to provide F4 help for the 2 fields in module pool program. the fields are document number and fiscal year from rbkp table.
    i could provide search help for two fields.
    but how to select matching fiscal year for that document number.
    problem: i am getting fiscal year as first four digits of document number.
    please help me to solve this problem.
    Thanks & Regards,
    Namratha.V

    Hi,
       If your requirement is after selecting the document no from f4 help then the corresponding year should be updated in the document year field then use FM --> DYNP_VALUES_UPDATE
    In  this function module pass the screen no program & field for which u want to update value

  • Providing F4 help for the same field on selection screen

    Hello Experts,
    My requirement is :
    There are 2 radio buttons and a parameter "p_file" on my selection scree.
    1. rb_appl
    2. rb_pres
    If the radio button rb_appl = 'X', I need to place the logic of F4 help of application server for the field p_file. Else if the rb_pres = 'X', then I need to place the logic of F4 help of presentation server for the same field p_file.
    I have written the code in the below manner
    PARAMETERS: rb_appl RADIOBUTTON GROUP rad DEFAULT 'X',
                             rb_pres RADIOBUTTON GROUP rad ,
                             p_file   TYPE ibipparms-path.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      IF rb_appl = 'X'.
          PERFORM f_applictn_server_filenm.
      ELSEIF rb_pres = 'X'.
        PERFORM f_presentation_filenm.
      ENDIF.
    But I am getting the F4 help for only the radio button for which i have placed the default value in the parameters.
    So please let me know how to define the F4 help for the same field based on the radio buttons.

    Hi,
    You can acheive the same by the addition of [USER-COMMAND fcode].
    RADIOBUTTON GROUP group [USER-COMMAND fcode] - The addition USER-COMMAND can be used to assign a function code fcode to the first parameter in a radio button group. The function code fcode must be specified directly, and have a maximum length of 20 characters. When the user selects any radio button of the radio button group on the selection screen, the runtime environment triggers the event AT SELECTION-SCREEN and transfers the function code fcode to the component ucomm of the interface work area sscrfields.
    So you code should be altered as
    PARAMETERS: rb_appl  RADIOBUTTON GROUP rad
                         USER-COMMAND radclick    "Addition which you have to make.
                         DEFAULT 'X',
                rb_pres  RADIOBUTTON GROUP rad ,
                p_file   TYPE ibipparms-path.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      IF rb_appl = 'X'.
        PERFORM f_applictn_server_filenm.
      ELSEIF rb_pres = 'X'.
        PERFORM f_presentation_filenm.
      ENDIF.
    Thanks & Regards,
    Harish

  • How to find the search help for the parameters stmt in a report

    hi
    how to find the search help for the parameters stmt in a report , that is using which addition to the parameters statement

    I am not sure if I understood the question,but if you meant how to attach a search help to parameter for which a default search help is not available,you can do that by using addition  "Matchcode Object"
    Parameter: a type i matchcode object 'Search Help Name'
    Search Help name should be in single quotes.
    Regards,
    Anubhav.
    P.S: Award Points if useful.

  • Audio cable help for the new AppleTV.

    Audio cable help for the new AppleTV.
    Currently I have an original AppleTV with audio RCA plugs to mini plug into my BOSE speakers.
    The 2nd Gen AppleTv has a Toslink input. I've looked at cables of Toslink to optical mini. Will this cable work? The optical mini part I'm not sure of what it is.
    Thanks so much. The monitor I use doesn't have speakers.
    This is the cable I see at Amazon
    http://www.amazon.com/gp/product/B0002JFN1K/ref=ordcartshr?ie=UTF8&m=ATVPDKIKX0DER
    Message was edited by: musicmaker

    If I understand your question correctly, you want to connect your Apple TV2 to your Bose system using a mini plug.
    You will need an optical to digital coax RCA converter (find it on Ebay about $15), then you can connect your mini cable. Here is a link to one I recently bought on Ebay: http://fwd4.me/nrQ

  • How to create Search help for the field /SAPSLL/PRGEN-ATTR20V

    Hi ,
    I need to add a search help for the field /SAPSLL/PRGEN-ATTR20V and their is a chk table used for this field is /SAPSLL/TCOATV20.
    In this table /SAPSLL/TCOATV20-ATTRV20V is a Primary key field.
    How can I add search help for this field?
    Any suggestions will be appreciated!
    Regards,
    Kittu

    HI,
    Fixed on my own..
    I am closing this thread!
    Thank you!
    Kittu

  • Search help for the "Week Select option"

    Hi Experts,
    My selection screen is like this:
    Article:  .............. to ..............
    Week  .............    to ...............
    I am taking article EKPO-MATNR field.and week S012-SPWOC field
    Now there is there search help for the S012-SPWOC field. How can I create the seach help for this fields.
    Regards
    Krishan

    hi,
    try this way.
    tables: ekpo, s012.
    select-options:article for EKPO-MATNR,
                    week for S012-SPWOC.
    Regards,
    Shankar.

  • Oracle Help for the Web 2.0 Production

    Oracle Help for the Web 2.0 is now available on OTN Downloads.
    Oracle Help for the Web (OHW) 2.0 is a major update to the previous releases OHW 1.1x and OHW 1.0.x, and is designed and recommended to replace both.
    Some of the new features in 2.0 include the following:
    Support for Bookmarking Navigator Pages
    OHW 2.0 no longer uses frames to store navigational state on the webpage. Each navigator stores its complete state on the URL, allowing each page to be bookmarked. This includes TOC locations, keyword locations, and search runs. In the view topic page, the frame information is also saved, allowing a user to forward the link via email, etc to the displayed topic. In addition, if you navigate to a named anchor within a topic page, this page position is also saved and is bookmarkable.
    Multiple Locale Support in a Single Instance
    OHW 2.0 can now support multiple locales in the same servlet instance. After you register the helpsets in the OHW configuration file, the OHW servlet will automatically determine the best locale to use for a user request (based on browser settings and what locales are available), and display the localized helpset (along with a localized OHW chrome) to the user. This feature also means that if you navigate to a topic in English, and then send the link via email to a user whose browser supports Japanese, if the Japanese helpset is registered, the topic link will appear in Japanese to the second user.
    Search Engine Support
    OHW has been specially designed so that search engine crawlers can reach all hosted content (including table of contents, and index pages) and easily traverse within and between the available navigators. Page titles have also been redesigned to make pages easier to locate from within a search engine result set.
    Ability to Share Resources Across Localized Helpsets
    OHW can be configured so that helpsets can share resources such as images and CSS stylesheets. Since each localized helpset no longer needs its own resources, this can dramatically reduce the size of the deployed file.
    Relative Content Locations
    Content locations can now be specified relative to the OHW configuration file.
    True Popup Support
    OHW now properly supports Oracle Help popup links. Following this link will bring up a dynamic draggable DHTML window (or a normal popup window if the browser does not support it) with the requested topic page.
    All Level Merging in the Table of Contents
    Using the default TOC engines, each level of the TOC will merge like elements together. This change reflects modifications made to core Oracle Help classes and mimics the feature added to Oracle Help for Java (OHJ).
    New Tree-based Table of Contents Navigator
    The Tree-based TOC navigator shows the data in a heirarchical fashion and allows the user to see the full TOC (and not just a limited part of the TOC, as with previous versions of OHW). The tree-based TOC navigator is a standard navigator and can be added by including it in the helpset configuration file.

    Yes, I am now able to access this page and download OHW.
    Thanks very much,
    Lucie

Maybe you are looking for

  • "the specified network name is no longer available"

    I have a weird situation. I am using both iMac and Dell laptop. I use AEBS a1s a bridge - AT & T installed a wireless router and one hard line, and I plug my AEBS on the hard line. Dell is connected to AT&T router (and then to AEBS through hard ether

  • Snow Leopard Mail - Bouncing Icon/Play Sound Rules Cancel Each Other Out

    I recently saw a movie which featured many closeups of a MacBook Pro being used; every time the actor got an e-mail message, the Mail icon bounced in the Dock AND played the New Message Sound. In the current version of Snow Leopard Mail, you can crea

  • Publish Web Site

    Hi Team, I've a Project in which 8 libraries and 1 website is defined. And when I am publishing this web site it is giving successfully published but datetime of dll i.e. web.dll is not changing and also when I am deploying this to QA server the chan

  • How me make the UIButton's alpha less than 1?

    Right now if I add a button in Interface Builder and then in view attribute of "button attributes", i can find a place to adjust the alpha, but the problem is that when i adjust the alpha, the whole button's alpha changes, even the alpha of the label

  • Mega player 536

    Hi all, I just bought a MSI mega player 536 and I have 2 questions. First: Why doesn't it add the artists in the artist list? It only show no file but i have files on it. Second: Which codec do I need for the video files? I tried some MJPEG converter