How to clear display ???

When I enter the program about graphic, some of former display still appears.
How to clear the former display.

public class MyCanvas {
public void paint(Graphics g) {
  g.setColor(255,255,255); //white
  g.fillRect(0,0,getWidth(),getHeight()); //the whole screen
}Brgds,
Eirik Olimstad

Similar Messages

  • How can i display digits in Chinese Format

    Hi,
    How can i display the digits in Chinese Format?
    Suppose i have a number 15 as a value.
    Now in Locale Chinese(Taiwan) it should display the digit as a combination of Chinese character for 10 + 5.
    So could anyone please tell me what should i do for it?
    Thanks,
    Pinakin Ariwala

    I think my question is not much clear so let me give you some more detail
    There is a special characters available for a digits like 10,20 ,30 ,100 etc so when we want to represent the number 15 it should be displayed as a combination of chinese character for 10 and chinese character for 5.
    similarly if we want to display 115 then it should 100+10+5 ..
    so please anyone suggest me the way ito go?
    Pinakin Ariwala

  • How to clear parameters defined in selection screen on back button

    Hi,
    I have a report with parameters, few being input fields, and check boxes. After report is executed when user selects the back button, the selection screen is displayed again but with the old selection values. I want to clear them.
    So in the Initialization even I added the code to clear all these parameters;
    CLEAR: p_aaa, p_bbb, p_ccc.
    I debugged and control passes through this code but still the fields are not cleared and they retain the old input values.
    How to clear them ?
    thnks

    >
    Rob Burbank wrote:
    > Yes he did. My mistake.
    >
    > But isn't this what he wants? To clear the Selection screen so that something has to be entered?
    >
    > Rob
    IMO, he only wants to clear the selection screen parameters on the click of 'BACK' button
    in the list screen. If the OP clears the selection screen variables in AT SELECTION-SCREEN OUTPUT
    even, the values assinged to the selection parameters in the INITIALIZATION and with the DEFAULT addition of the PARAMETERS and SELECTION-OPTIONS statements will also be overwritten even when the report is executed for the
    first time.
    -Rajesh.

  • How to clear the alerts in Grid

    Hi,
    Grid version : 10.2.0.5
    1)I would like to clear the alerts older than two days in grid.
    We are monitoring more than 500DB's in grid.Is there any procedure to remove the alerts ?
    2)How to clear or reduce the "All Targets Policy Violations" in grid.
    3)How to clear or reduce the "Security Policy Violations" in grid.
    Please need your help on this.
    Thanks.

    Open your Grid Control Console
    Go to Alerts --> Warning
    Select database and press go
    You will see that the Clean button appear and checkbox for each warning alert that its possible manual clean you will see the checkbox to activate
    The Critical Alerts can't clean manualy.
    OR
    1. Make a SELECT * from MGMT_CURRENT_SEVERITY and show for the TARGET_GUID, METRIC_GUID and KEY_VALUE.
    2. Connect to db user SYSMAN and execute:
    exec EM_SEVERITY.delete_current_severity(TARGET_GUID,METRIC_GUID,KEY_VALUE);
    for example:
    exec EM_SEVERITY.delete_current_severity('0DEB8E6980695B7548CF98871084AD10','F95BA0D95585002889E1ABF92B2DA7C3','SYS');
    3. Wait a few minutes.
    The content of the MGMT_CURRENT_SERVERITY table is displayed as ALERTS or ADDITIONAL ALERTS in EM’s main menu. If you delete the ALERTS only in the MGMT_CURRENT_SEVERITY table, the alert messages appears still in some EM submenus.

  • How to clear a container in OOPS...?

    Hi,
           How to Clear a Container in Object Orientation Programming...?
                      There is a method available......can you tell me that one.......
    Moderator message: Please search the forums and Google before posting basic questions. Thread locked.
    Edited by: Neil Gardiner on Sep 24, 2010 3:55 PM

    I Create an Container to display Graphics.
    Thare are many click events.
       When I click an "click event " it shows orihinal Graph.
         After I click second "click event" it overrides previous values and texts.
                Even though I didnt create Graphics for an Particular "click event" , it shows Graphics.
                       what is the Method (or) Function Module to clear that Container...?

  • How to clear data in Table Control.

    hi! all
    How to clear the data in table control.
    i have a Table control which displays column A data from the previous screen and allows to enter column B and column C and i have a button CLEAR, when i click CLEAR button the Data displaying in table control has to be cleared. how to do it.
    Regards,
    Nagulan

    Hi,
    Loop over the internal table of table control & clear data from table control.
    loop at tctab.
    clear tctab.
    modify tctab.
    endloop.
    Best regards,
    Prashant

  • How to clear entries in a Recon GL account?

    How to clear entries in Recon GL account. When we try to post using f-03, open items does not become visible and We can not go for open item management for particular GL. Please tell me the alternatives for this process.

    The forum [FPM - General|Enterprise Performance Management (SAP EPM); in which you originally posted your question deals mainly with the financial performance applications otherwise known as Enterprise Performance Management (EPM) carrying the BusinessObjects brand.   Your question pertains to SAP [ERP Financials|SAP ERP Financials; which is covered by another forum.  Therefore your message has been moved.  Please adjust any bookmarks you might have and post to the appropriate area in the future, that way you are assured you will have the right audience reading your posts.
    Thanks and best regards,
    [Jeffrey Holdeman|http://wiki.sdn.sap.com/wiki/display/profile/Jeffrey+Holdeman]
    SAP Labs, LLC
    BusinessObjects Division
    Americas Customer Solutions Adoption (CSA) team

  • How to clear a record of control block

    i have one control block with 2 items and the Max. records displayed property is set to 10.I have populated 5 records and now i want to clear one record, but the clear_record statement does not seem to be working. How to clear a record in a control block. Please help me out in this doubt of mine.

    You have probably moved focus to another block. You have to go_block and maybe go_record before using clear_block.

  • How to clear the selected values in the JCombobox

    Hi All,
    Can you please tell - how to clear the selected values in the JCombobox
    I have four dropdowns in my application, When I click "CLEAR" button, what ever the values selected in the four drop downs should go off and view as "SELECT" in all the dropdowns.

    In addition to the above you should also check out [Combo Box Prompt|http://www.camick.com/java/blog.html?name=combo-box-prompt] which makes it easy to display the default prompt.

  • How can we display

    Hello,
    How can we display numbers in this form like 01, 03 or 09 etc...using Math.random method or any other ways.
    thank u

    The-Sue,
    thanks for the reply. What i meant was like for example in this example:
    int)(99*Math.random())+1
    I want that numbers frm 1-9 be displayed as 01, 02, ...09, the rest normal,
    so basically instead showing lets say 6 it should display 06, but if number is 45 it should display like 45 and not 045
    I hope it is more clear now
    thanks

  • How to Clear page.

    Hi All,
    i have two pages.first page is search page,secound page is create page.
    in search page having one lov,go,create button.
    once click on the create button it ll navigate to create page.
    here enter some data and click on the submit button data insert to table. create page having submit and back buttons.
    here my problem is in search page we select the lov(ex:1000) and click on the create button it ll navigate to create page and we will enter the data and click on the back button it ll navigate to search page, in search page we select same lov (1000) and click on the create the autometically the previous data ll displayed how to clear the create page.
    Please help me as per my knowledge i write the code in create page CO. but it ll not clear the page.
    if(pageContext.getParameter("Back")!=null)
    pageContext.setRedirectURL
    ("OA.jsp?page=/wnsgs/oracle/apps/pa/projectinfo/webui/ProjectInfoCreatePG");
    pageContext.forwardImmediately(
    "OA.jsp?page=/wnsgs/oracle/apps/pa/projectinfo/webui/ProjectInfoPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    please help me its very urgent
    thanks
    Seshu.

    Hi Seshu,
    Rather than coding in the CO, create a method in AM and then call the method in the CO. I will give you sample code to handle this requirement.
    add this in processFormRequest method of CO where you are setting the actions of Create and Cancel buttons.
    if( pageContext.getParameter("Clear")!=null)
              am.clearForm(pageContext, webBean);
    And in AM,
    public void clearForm(OAPageContext pageContext, OAWebBean webBean)
         SiteDetailsVOImpl vo = getSiteDetailsVO();
    OAMessageTextInputBean Item1_nameBean = ( OAMessageTextInputBean )
    webBean.findChildRecursive("Item1_name ");
         Item1_nameBean.setValue(pageContext, null );
         OAMessageLovInputBean Item2_nameBean =( OAMessageLovInputBean )
    webBean.findChildRecursive("Item2_name");
         Item2_nameBean.setValue(pageContext,null );
         vo.setWhereClauseParam(0,"####"); // here # is a junk char to make the condition as false
         vo.setWhereClauseParam(1,"####");
    vo.executeQuery();
    As we are passing the Junk values in setWhereClauseParam, and the condition go false, the form should be cleared.
    Check with the above information and post the outcome.
    Regards,
    Raja.

  • How to clear off Jpanel off its components?

    hai forum,
    In my project i have to select a method when textfields to enter its parameters will be displayed in a panel(which is inside a scrollpanel).
    When i select a second method(which is done using radio button) i want the previous panel screen having some text boxes to be cleared.
    Could you forum friends help me out?
    Thank you all.
    Shailesh

    Sir,
    my problem is that I have a set of methods which could be selected using radiobutton.I f i select a method as many JTextFields will be displayed in a JPanel, as there are parameters.i.e if the method has two parameters then two textfields will be displayed.These are for the users to enter their input into.
    Now ,when i select a different method then naturally the JPanel should be cleared of its previous textfields to give way for the new ones.
    So how to clear off the older ones.Just noe i tried jPanel.removeAll(); but no action seems to be done.
    shailesh

  • How to clear WinJS listview

    I am new to WinJS, and want to clear a list view.
    I am having trouble even selecting the list view.
    When attaching events I selected list view like
    var listView = document.getElementById("listView");
    listView.addEventListener("iteminvoked", goToJob);
    That worked fine, but when I want to clear listview I was trying to bind an empty list,
    var alistView = document.getElementById("listView");
    alistview.winControl.itemDataSource = list.dataSource;
    I keep getting alistView is undefined
    How to select listview and how to clear list
    Thanks
    Alan Mosley - ThatsIT Solutions

    I think I have a deeper problem.
    My problem is that I populate the listview, that works fine, but when I want to repopulate it, it does not update (I do not need to clear if re-populating works.)
    So I guess my question should be, why is my data not repopulating, thanks
    <div class="smallListIconTextTemplate" data-win-control="WinJS.Binding.Template" style="display: none">
    <div class="smallListIconTextItem">
    <div class="smallListIconTextItem-Detail">
    <h4 data-win-bind="textContent: Description"></h4>
    <p>
    <span data-win-bind="textContent: Name"></span>
    <span data-win-bind="textContent: State"></span>
    <span data-win-bind="textContent: Postcode"></span>
    </p>
    </div>
    </div>
    </div>
    <div id="listView"
    class="win-selectionstylefilled"
    data-win-control="WinJS.UI.ListView"
    data-win-options="{
    itemDataSource: Sample.ListView.data.dataSource,
    itemTemplate: select('.smallListIconTextTemplate'),
    itemsReorderable: true,
    selectionMode:'single',
    layout: { type: WinJS.UI.ListLayout } }">
    </div>
    $(document).ready(function () {
    var listView = document.getElementById("listView");
    listView.addEventListener("iteminvoked", goToJob);
    WinJS.UI.processAll();
    function getJobs(q) {
    var p = new RemoteData().postData(root + "/api/jobs/GetNearActiveJobs", { query: q, kms: $("#near-km").val() });
    p.done(function completed(request) {
    console.log("k" + JSON.stringify(request.response));
    var obj = JSON.parse(request.response);
    console.log(obj);
    WinJS.Namespace.define("Sample.ListView", { data: new WinJS.Binding.List(obj) });
    WinJS.UI.processAll();
    }, function error(request) {
    console.log(request);
    var RemoteData = (function () {
    function RemoteData() {
    RemoteData.prototype.getData = function (url, data) {
    RemoteData.prototype.postData = function (url, data) {
    console.log(url);
    console.log(JSON.stringify(data));
    return WinJS.xhr({
    url: url,
    type: "POST",
    responseType: "",
    data: JSON.stringify(data),
    headers: { "content-type": "application/json" }
    return RemoteData;
    Alan Mosley - ThatsIT Solutions

  • How to identify display and navigational attributes in report?

    To all of thanks to be in SDN, plz send tue clarifications.....?
    Q. How to identify display and navigational attributes in report?  is there any naming convension differences for both of them?

    This works fine for "powerusers", but for informational users you have to create your own naming conventions for all navigational attributes which are not unique. For example 0COUNTRY may be a navigational attribute of 0CUSTOMER, OSOLD-TO, 0SHIP-TO, 0BILLTOPRTY, 0PAYER. To make the text clear for your users in reports name it CS Country, SO Country, SH Country, BT country, ... as 0COUNTRY could also be a characteristic from the document.
    This means quiet some work especially if you have a multilingual installation, but the information users will be very thankful.
    hope this helps
    mich

  • How to clear the contents of table control

    Hi All,
              How to clear the contents that are present in a Table control. If there is any code Please Let me know.
    I will assign full marks to the correct code.
    Pradeep Kumar Kota.

    Hi
    U need to clear the contenents of internal table used to store the record displayed by table control.
    Every time the PBO is triggered the table control is automatically cleared, so you need only not to transfer any data from internal table to table control.
    So you should show how your PBO if you want a right answer.
    Max

Maybe you are looking for

  • Re : Reports in ABAP-HR

    Hi All, What is  the best way of creating reports in ABAP-HR while retreiving data from  infotypes. I mean to ask u among the four ways that i know 1. Using Macros 2. Using Provide.. Endprovide statement 3. Using Select statements 4. Using Function M

  • Ever since Firefox updated, it won't open any of my EPUB files anymore. What is wrong?

    Every time I click on my ebooks in the .epub format, I get a dialog box that asks me which program I want to use to open the file, or if I wish to save it. When I Firefox to open the file, Firefox simply opens another tab with another dialog box and

  • About the Adobe Content Viewer.air file to let everyone download?

    I would like to ask Made using indesign. Folio interactive e-book Can be placed on the Internet for others to browse it? Can not find the browser to download Whether directly online AdobeContentViewer.air file to let everyone download Can, and indica

  • How do I delete this message???

    I accidentally made a duplicate post and now I don't know how to delete one... hopefully someone can delete this message or tell me how to do so. It doesn't seem to be very obvious... Message was edited by: geordles Message was edited by: geordles

  • Holiday Challenge Time :)

    I have a daily puzzle calendar on my desk and I found a puzzle that I thought may be fun to solve using SQL. Sample Data WITH    matrix AS         SELECT  'A' AS ID, 1 AS A,1 AS B,1 AS C,0 AS D,0 AS E,0 AS F,1 AS G,0 AS H,1 AS I,0 AS J FROM DUAL UNIO