Is there a way to initialize a Graphics object (indirectly)?

Hi,
I've a problem with Graphics Abstract class;
how must I do to initialize a Graphics object?
I must execute this code:
Graphics gr;
gr.drawString("Image",30,0);
gr.drawString("not",30,30);
gr.drawString("Found",30,60);
image.paintIcon(null,gr,0,0);
the compiler returns my the error:
"gr not initialized"
How can I do to initialize this last?
Thank.

Infact with
gr=null;
i've a null pointer exception;
but I've also try
jLabel2.setText("Prova");
Graphics gr = jLabel2.getGraphics();
gr.drawString("Image",30,0);
gr.drawString("not",30,30);
gr.drawString("Found",30,60);
image.paintIcon(this,gr,0,0);
jLabel3.setIcon(image);
and I've always a null pointer exception.
Why?
Thank.

Similar Messages

  • Is there a way to force a View Object to query the database always?

    Dear All,
    Is there a way to force a view object to always scan the database table to read the latest data?
    Here's my use case.
    I have a page that loads data then I have a button which executes the following code.
    viewObject.setApplyViewCriteriaName("SampleCriteria");
    viewObject.setNamedWhereClauseParam("arg1", "test");
    viewObject.executeQuery();
    RowSetIterator it = viewObject.createRowSetIterator(null); 
    while(it.hasNext()) {
         /* More Code */
    }Suppose after page load, I edited some row in the table and then I clicked the button. I notice that my edited row
    was not reflected in the query.
    I am not sure but is there some configuration to check so that when the viewobject executes it will always query the data
    from the table?
    I am thinking that there is some level of caching and I want to disable it. If I restart my application, I notice that it is able to read the latest data.
    JDEV 11.1.1.5

    By default a view object performs its query against the database to retrieve the rows in its resulting row set. However, you can also use view objects to perform in-memory searches and sorting to avoid unnecessary trips to the database.
    The view object's query mode controls the source used to retrieve rows to populate its row set. For more details please refer: http://docs.oracle.com/cd/B31017_01/web.1013/b25947/bcadvvo005.htm
    Also, see if this helps: setQueryMode for secondary rowSet not working

  • Is there a way to shift select multiple objects in layer palette, not just highlight multiple object

    Hi,
    Is there a way to shift select multiple objects in layer palette, not just highlight multiple objects?
    I would want to do this when I have a bunch of objects hidden under some other objects on the artboard. This feature is available in PSD, so I assume Illustrator should have it.
    Thanks!

    Thanks for the reply, Harron.
    I'm using CS4 & below.
    Highlighting object - click on object in layers palette & it turns blue
    Select object - click on object in layers palette to the right of the circle, which creates a square, and selects the object on the artboard
    How do I shift-select multiple objects in the layers palette...select 50 objects with a click, then a shift-click? Shift-select works for highlighting, but not selecting. On most programs shift-select is used to grab a bunch of stuff...:0)
    In the past I have inadvertently selected multiple objects in the layers palette, by somehow alt?-dragging over the layers...or something...I can't re-create it.

  • How must I initialize a graphics object?

    Hi,
    I've a problem with Graphics Abstract class;
    how must I do to initialize a Graphics object?
    I must execute this code:
    Graphics gr;
    gr.drawString("Image",30,0);
    gr.drawString("not",30,30);
    gr.drawString("Found",30,60);
    image.paintIcon(null,gr,0,0);
    the compiler returns my the error:
    "gr not initialized"
    How can I do to initialize this last?
    Thank.

    Or you can call getGraphics() on any Component, but most likely you will do any graphics in the paint method as tjacobs said.

  • Is there a way to untag the tagged object?

    Is there a way to untag the tagged object in JVMTI ?
    Thanks, David

    In the "Object Tags" subsection of the "Heap" section in the JVM/TI spec:
    Setting a tag to zero makes the object untagged.

  • I have a MB Pro early 2011 with SL. Is there a way to upgrade the graphic "drivers" without upgrade the entire OS?

    As the title says, I have a MacBook Pro with an Intel HD 3000, and I'm still using Snow Leopard (best OS ever). I tried upgrading to Mountain Lion, and I found out that there is a grafic enhancement. Is there a way to install ML "drivers" (or kext, if you prefer) on SL?
    Thanks in adavance. =)

    No as the drivers work between the OS and the hardware,  the OS has changed.
    Apple doesn't release the drivers anyway, nor does the dedicated graphic card makers for Apple.
    Your one of many who got snookered into a 13" MacBookPro with no dedicated graphics card I suspect.

  • Is there a way of improving my graphics on my early 2011 macbook pro 13"?

    Does anyone know a way of improving the graphics capability for OpenGL with the Intel 3000 chips in the early 2011 MBP 13"? I bought it not realising the graphics chips had been downgraded and now as a result struggle to do any CGI work that I rely on my computer to do.

    CHRIBAM wrote:
    I'm more inclined to go with Ogelthorpe's advice (if I had the cash).
    I agree with Ogelthorpe as well, the 15" and the 17" MacBook Pro also have dedicated graphics cards which give more performance than the Intel HD 3000 only graphics, which is really of MacBook type performance for consumer user. (playback of video and that's about it)
    Still wondering why Apple went backwards for graphics in the 13", I completely missed the change.
    I'm peeved at Apple for the fact that they didn't make a clear distinction of the disadvantages of the 13" with no dedicated graphics card then lumped it in with the 15" and 17" which do.
    To Apple it's a matter of performance for price, the 13" scores 11 on Cinebench, the 15/17" score 30 and 45, so the  13" doesn't even come close. But it comes in the same silver case, the same "MacBook Pro" name, when in fact it's not so.
    Apple knows people would be attracted to the performance of the MacBook Pro name in a small size factor, the price is also attractive to the younger crowd, the younger crowd are also interested in running 3D games, which need a more powerful video card.
    Your not the first who's complained and feels burned, you trusted Apple was selling you a powerful MacBook Pro machine and you've got a consumer machine instead.
    The 13" Mac laptop should have gotten it's own category, called it a MacBook instead and it should have come with white or black case. But that would have angered Intel most likely, who are trying to push integrated graphics on their CPU's so they own the whole show eventually.
    It's going to take a long time before CPU integrated graphics is ever going to beat dedicated GPU graphics, because 3D game detail is always going to go up until it finally reaches 3D raytracing at 200 fps.
    What Apple is doing is trying to get folks hooked on lessor quality/detail games, the ones you see on iPads and iPhones, and away from wanting rich detail which needs a powerful dedicated video card.
    So Apple lumps the 13" MacBook in with the MacBook Pro line, try to force the issue, next they will try it with the 15", integrated graphics on the low end model. Then again only dedicated graphics on the 17" model and so forth. Eventually developers won't make as many 3D games for Mac's because most people buy laptops, cuts into their potential sales.
    If you really want to run 3D games, you have to go with a Windows 7 desktop where the video card can be swtiched out.
    http://www.cbscores.com/index.php?sort=ogl&order=desc

  • Is there a way to find which DB object is used in which all pages

    Hi All,
    Is there any way by which we can find out which All Database objects are used in which all pages in an Application. Our Application is quite big and has lots of pages, So is there any report like functionality where I can check the DB objects used on page basis or any underlying view where we can get this information.
    Thanks,
    Vikas

    Hello Vikas,
    There are a couple of APEX Views which provide you with that information.
    If you go to Home>Utilities>Application Express Views
    following views may be useful to you:
    - APEX_APPLICATION_PAGE_DB_ITEMS
    - APEX_APPLICATION_PAGE_PROC
    There are a couple of others (for ex if you make use of flash charts, interactive reports etc) but if you start with the above you'll have a good starting point.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • Is there a way to zoom into selected objects in Pages?

    Working in the page layout mode in Pages and I note that there is no way to zoom into a particular object or selected objects. This is really a pain if you are working on a poster much larger than the screen and you want to zoom right to a particular object. Zooming only seems to go to upper left corner and you have to scrool around to find the object you were working on.
    Has anyone figured out some magical way to zoom into an object on a page?

    This may not be the perfect answer, but it's pretty good in some situations. Smart Scroll has a grab hand fetaure that you may like.
    http://download.cnet.com/Smart-Scroll/3000-18487_4-10003983.html
    Walt

  • Is there a way to find the class objects memory size?

    Hi Friends,
    Please help.
    Is there a way to find the number of Objects created and total size?
    For example:
    class AgeRecord
    int start;
    int end;
    AgeRecord(int start, int end)
    this.start = start;
    this.end = end;
    In a loop if I create 1000 objects, how will I get the total memory size
    Thanks and Regards
    JG

    You might find this useful...
    package forums;
    http://weblogs.java.net/blog/dwalend/archive/2007/11/the_thing_about.html
    http://forums.sun.com/thread.jspa?threadID=457279&start=30&tstart=0
    http://www.velocityreviews.com/forums/t364574-size-of-boolean-type.html
    The JLS doesn't specify the size of a boolean, leaving it upto the JVM
    implementor to define. Sun's JVM stores booleans as:
    (1) a boolean is-an int; i.e. a signed 32 bit twos-compliment integer.
        At face value, this is an innordinate waste of space, but Java uses a
        32-bit stack frame, and most (modern) CPU's use a 32-bit word anyway,
        so the wasted space is worth the CPU cycles, and it's simple.
    (2) a boolean[] is-a byte array, using 1 byte per element, rounded up to the
        nearest 8, plus 8 bytes for the array-object itself.
        For example: boolean[] bools = boolean[100];
        100 mod 8 = 4; so that'd be 104 bytes + 8 bytes = 112 bytes.
        So, let's dis/prove the contention by experiment.
        1,000,000 mod 8 = 0 so 1,000,000 + 8 bytes for the array = 1,000,008
    class BooleanArraySizeTest
      public static void main(String[] args) {
        final Runtime rt = Runtime.getRuntime();
        System.out.println("The contention is that each iteration should use 1,000,008 bytes.");
        try {
          long before, after;
          final int TIMES = 32;
          boolean[][] bools = new boolean[TIMES][];
          for (int i=0; i<TIMES; i++) {
            before = rt.totalMemory() - rt.freeMemory();
            int n = 1000*1000-(TIMES/2)+i;
            bools[i] = new boolean[n];
            after = rt.totalMemory() - rt.freeMemory();
            System.out.print(n);
            System.out.print('\t');
            System.out.print(after-before);
            System.out.println();
        } catch (Exception e) {
          e.printStackTrace();
    999984 used=1000000 bytes
    999985 used=1000000 bytes
    999986 used=1000000 bytes
    999987 used=1000000 bytes
    999988 used=1000000 bytes
    999989 used=1000008 bytes
    999990 used=1000008 bytes
    999991 used=1000008 bytes
    999992 used=1000008 bytes
    999993 used=1000008 bytes
    999994 used=1000008 bytes
    999995 used=1000008 bytes
    999996 used=1000008 bytes
    999997 used=1000016 bytes
    999998 used=1000016 bytes
    999999 used=1000016 bytes
    1000000 used=1000016 bytes
    1000001 used=1000016 bytes
    1000002 used=1000016 bytes
    1000003 used=1000016 bytes
    1000004 used=1000016 bytes
    1000005 used=1000024 bytes
    1000006 used=1000024 bytes
    1000007 used=1000024 bytes
    1000008 used=1000024 bytes
    1000009 used=1000024 bytes
    1000010 used=1000024 bytes
    1000011 used=1000024 bytes
    1000012 used=1000024 bytes
    1000013 used=1000032 bytes
    1000014 used=1000032 bytes
    1000015 used=1000032 bytes
    ENVIRONMENT:
      Microsoft Windows [Version 6.0.6000]
      Copyright (c) 2006 Microsoft Corporation.  All rights reserved.
      C:\Users\Administrator>java -version
      java version "1.6.0_12"
      Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
      Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)
    */Cheers. Keith.

  • Is there a way to print out the objects (controls) used in an application in VS 2012?

    My students are required to change the name property of all the control objects used in their applications (buttons, labels, etc.). I can have them print the code, but that only shows the names of the controls used in their code, not necessarily all of
    them. Is there a way for the students to print the names of all the control objects used in their application?

    Hi D Schultz,
    Based on your description, I'm afraid that it is not the correct forum for this issue.
    Just to make this issuce clearly, Which kind of app did you create? Which kind of language were you using?
    Like this case posted by you:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/147a040a-e9e2-4e7c-b31e-334b6d21dffa/vb-code-to-create-formobjects-showing-in-code-window?forum=visualstudiogeneral#147a040a-e9e2-4e7c-b31e-334b6d21dffa
    If it is the VB winform apps, I suggest you post this issue to the VB language development forum or the WinForm forum.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral
    https://social.msdn.microsoft.com/Forums/windows/en-US/home?forum=winforms
    If not, please let me know the real project type, I will help you find a more appropriate forum.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Are there any ways to upgrade the graphics card on a sony vaio laptop?

    Solved!
    Go to Solution.

    Pretty much if you have to ask, the answer is no.
    For those laptops that allow it (and "Sony Vaio" isn't specific enough to determine this, an exact model number and current configuration would be needed.), it's usually a difficult and expensive procedure that WILL void your warranty (unlike desktop video card upgrades).
    If it has Intel GMA graphics, 100% are non-upgradeable.
    If it has discrete graphics (ATI or NVidia), there's a slight chance but it's getting more and more rare.  In general, if multiple video card options were offered at purchase time for a system, it is possible to upgrade from the lower options to higher ones at a later date for significant expense.  The exception being systems that offered Intel GMA or other options - the GMA-based systems usually use a different motherboard than the other options (This was the case with the Dell E1705 series.)
    *disclaimer* I am not now, nor have I ever been, an employee of Best Buy, Geek Squad, nor of any of their affiliate, parent, or subsidiary companies.

  • Is there a way to convert FM graphics (on a reference page) to anchored frames?

    Hello -
    I'm using Technical Communication Suite 3 (FrameMaker 10 and RoboHelp 9) and I can't figure out how to take "standard" caution/warning symbols (that currently appear in graphic frames on a FM reference page) and put them in anchored frames so that they will automatically appear when I link a FM book to RH.
    Does anyone have an idea of how to do that?
    Thanks in advance for your help.
    --Ed

    Hi Ed.
    I don't believe this can be done with an unanchored frame. I think you'd have to have the graphic in an anchored frame that you can copy from the reference page and paste into your body page.
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

  • Is there a way to open a smart object, but get the original instead of a temp file?

    Working with large amounts of images and PSD files.
    1.  We create a smart object from say, a .jpg file on a layer, then filter, etc.
    2.  Double clicking the smart object creates a new window with that object as a .psB file.
    3.  When the file is saved and closed, the .psB file is deleted.
    This is how smart objects work, we know.
    What we need to do is:
    1.  We create a smart object from say, a .jpg file on a layer, then filter, etc.
    2. Double clicking the smart object will open the ORIGINAL .jpg file
    3.  When the file is saved, the original .jpg file is saved in its altered form, and is reflected in the .psd file
    We realize that Smart objects were created for reasons, of which we are aware.
    Yet, we have several designers who use the same .jpg's but want the original to be changed so that the next developer has that changed .jpg.
    Trie thus far:
    ScriptListener cannot be used to tie it to a double click event on a smart object, because when the smart object is created it is already a copy of the original.
    Creating a variable to call the original does not 'appear' to work, because it is accessing the .psB file instead of the original .psD file.
    I think with early versions of PS there was a way to insert an image like a .jpg into a layer, and the link to that .jpg was retained. Thus, when you double click on that layer, the original .jpg is brought up to be edited, the .jpg file is now altered, and is reflected in the .psd file after finishing.

    No, not too late.
    InDesign is for layout for press in this case.
    Photoshop is for design, which is using the .jpg's.
    I'm half way there, but stuck at:
    Getting a file location reference when the .jpg is first brought into PS as a layer.
    Getting a script to write the location of the file into the medata for the PSD in some field
    Reading back the metadata file location for the .jpg and bringing it back into the PSD again.
    Any help would really be appreciated.
    I can make the completed script(s) available when its complete, as this has possibilities for other uses, batch process, and more.

  • Is there a way of going through Swing objects and changing properties?

    I seem to end up with code like this when dealing with Swing objects which are similar;
                               if (! ThrottleProperties.getProperty("Lever.1").equals("Disabled")) jTextFieldLever1.setText("" + USBData[0]);
                                if (! ThrottleProperties.getProperty("Lever.2").equals("Disabled")) jTextFieldLever2.setText("" + USBData[1]);
                                if (! ThrottleProperties.getProperty("Lever.3").equals("Disabled")) jTextFieldLever3.setText("" + USBData[2]);
                                if (! ThrottleProperties.getProperty("Lever.4").equals("Disabled")) jTextFieldLever4.setText("" + USBData[3]);
                                if (! ThrottleProperties.getProperty("Lever.5").equals("Disabled")) jTextFieldLever5.setText("" + USBData[4]);
                                if (! ThrottleProperties.getProperty("Lever.6").equals("Disabled")) jTextFieldLever6.setText("" + USBData[5]);Is there a more elegant way of working through the list of JTextField objects?
    If there is the above code could be reduced to a for loop and be a few lines.
    I look forward to someones reply

    import javax.swing.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    public class Homework extends JFrame {
         private JLabel imageLabel;
         private byte[] image = { 71, 73, 70, 56, 55, 97, 48, 0, 48, 0, -58, 0, 0, 0, 0, 0, 111, 62, 0,
                         37, 20, 0, -118, 77, 0, -87, -87, -87, 119, 67, 1, 81, 45, 0, -95, -95,
                         -95, -97, -97, -97, -99, -99, -99, -103, -103, -103, 51, 28, 0, -109,
                         -109, -109, 41, 23, 0, -117, -117, -117, 78, 63, 46, -125, -125, -125,
                         121, 121, 121, 65, 36, 0, 113, 113, 113, 109, 109, 109, 107, 107, 107,
                         127, 124, 120, 109, 61, 0, 99, 99, 99, 97, 97, 97, -123, 127, 119, 87,
                         87, 87, 101, 88, 71, 22, 12, 0, 81, 81, 81, 77, 77, 77, 81, 48, 5, 123,
                         69, 0, 69, 69, 69, -10, -10, -10, 67, 67, 67, -14, -14, -14, -18, -18,
                         -18, 59, 59, 59, -20, -20, -20, 9, 5, 0, -22, -22, -22, -26, -26, -26,
                         36, 20, 0, 51, 51, 51, -28, -28, -28, -38, -38, -38, 80, 45, 0, 6, 3,
                         0, 117, 65, 0, 107, 60, 0, -46, -46, -46, -50, -50, -50, 27, 27, 27,
                         -52, -52, -52, -56, -56, -56, -58, -58, -58, 93, 56, 9, 13, 13, 13, -68,
                         -68, -68, 94, 53, 0, -125, 73, 0, -74, -74, -74, -80, -80, -80, -82, -82,
                         -82, -84, -84, -84, 17, 9, 0, -90, -90, -90, 7, 4, 0, 44, 24, 0, 68, 55,
                         40, -102, -102, -102, -108, -108, -108, -110, -110, -110, 91, 73, 49,
                         -116, -116, -116, -118, -118, -118, -120, -120, -120, -122, -122, -122,
                         58, 32, 0, 85, 47, 0, -128, -128, -128, 124, 124, 124, 102, 57, 0, 116,
                         116, 116, 55, 30, 0, 89, 63, 30, 69, 41, 7, 92, 57, 13, 99, 55, 0, 96,
                         96, 96, 15, 8, 0, 94, 94, 94, -125, -127, 127, 116, 65, 0, 32, 18, 0,
                         86, 86, 86, 42, 33, 23, -1, -1, -1, 86, 48, 0, 105, 93, 78, -11, -11,
                         -11, 62, 62, 62, 54, 54, 54, -27, -27, -27, -35, -35, -35, 53, 29, 0,
                         40, 40, 40, -39, -39, -39, 43, 24, 0, -41, -41, -41, -43, -43, -43, 30,
                         30, 30, -49, -49, -49, 87, 49, 0, -55, -55, -55, 40, 22, 0, -65, -65, -65,
                         -69, -69, -69, -71, -71, -71, -77, -77, -77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                         0, 0, 0, 0, 0, 0, 0, 0, 44, 0, 0, 0, 0, 48, 0, 48, 0, 0, 7, -2, -128, 99,
                         -126, -125, -124, -123, -122, -122, 116, 0, 0, 65, -121, -115, -114, -113,
                         -113, -119, -117, -112, -108, -114, 10, 79, 66, -121, 68, 79, 16, 17, 17,
                         112, -114, 120, 79, 76, -107, -121, 108, 0, 30, -121, 36, 0, 104, -108,
                         21, 0, 59, -91, -122, -89, -87, -122, -85, -83, -112, -81, -79, -78, 99,
                         68, 59, 59, 53, 37, 35, -86, -84, -82, -80, -68, 99, 7, -118, 111, -114,
                         -73, -58, -69, -78, -54, 0, -52, -115, 74, 21, 85, 73, 73, 106, -114, 4,
                         21, 20, -39, 55, -91, -46, -44, -114, -110, -116, -113, 37, -118, 79, -30,
                         -53, -112, -26, -112, -23, 0, -21, -107, 102, 46, 46, 39, 54, 24, -121, 27,
                         54, 34, -10, -61, -24, -44, 33, -93, 69, 12, 23, -91, 120, -13, 100, 17, 52,
                         -28, -92, -117, 20, 74, 116, 14, 36, -24, -46, 37, -49, 64, 84, -56, 10,
                         -23, -54, 40, 104, 33, -57, 49, 27, 121, 1, 97, -61, -26, -50, 27, 23, -121,
                         50, -112, 36, 121, -57, 81, -56, 104, -19, 26, -83, 82, 52, -87, -47, -53, 82,
                         118, 60, 120, 64, 16, 4, 7, 33, 21, 65, -126, 60, 48, 66, -44, -120, -122, 32,
                         45, 13, 33, -15, 16, 38, 104, -101, -117, -75, 4, -15, 80, 68, 101, -128, -43,
                         1, 70, 0, -80, 113, -124, 16, 42, -95, -87, 0, -86, 94, -51, -70, -75, 81, 87,
                         94, 52, -24, -68, 16, -76, 5, -51, -87, -80, -2, 87, -79, 106, 61, -28, 0, -51,
                         25, 58, 116, -46, 124, 20, -124, -122, 38, -36, -79, 115, 13, -35, -52, -88,
                         -126, 7, -113, 35, 44, 18, -77, -120, 66, -91, 49, 21, 48, 0, -30, 24, 94, 65,
                         72, 9, -119, 15, 123, -57, 4, 81, 116, 33, 46, 11, -65, -96, 15, 100, 62, -76,
                         25, 64, -25, -85, -97, 65, -45, 20, 61, -70, 80, -23, -45, 86, 3, 56, 118, 76,
                         70, 17, -21, -42, -125, 94, -57, -35, 109, -11, -117, -19, -52, 114, -24, 108,
                         27, -109, -74, -119, 34, 50, 23, 100, -16, -66, -22, 27, -64, 109, -114, 54, 0,
                         116, -23, -88, -102, -59, -14, -34, -65, -9, 70, -97, 62, -26, -83, 95, -21,
                         -41, -101, 63, -105, -11, 67, -89, -114, 30, 87, 116, 102, -23, -63, -66, -67,
                         -127, -94, -16, -119, 10, 80, -44, -62, -125, 62, 94, 73, 20, -123, 24, 48, 71,
                         -47, 23, -34, 84, -88, 38, 32, 0, 54, 80, -126, -62, 27, 8, -66, 49, -123, 126,
                         -4, -7, -57, -37, 12, 29, 68, -40, -63, 16, -118, 112, 33, -95, -124, 98, 32, 104,
                         -126, 35, 79, 8, -72, 95, 127, 0, -4, 119, -99, 85, 23, 40, -46, 3, 111, 33, 40,
                         -110, 4, -121, 30, 54, 24, -30, -120, 36, -102, -120, -94, -118, -121, 80, -76,
                         -60, 28, 56, -26, 56, -121, 21, 11, 64, 6, -128, 27, 11, 4, 41, -28, -112, 11, -44,
                         33, -29, 110, 41, -78, -68, 66, 17, 69, 22, -115, -95, -120, 4, -53, 113, 49, -32,
                         -108, 71, -58, -107, 36, 104, -13, 60, 25, 37, 0, 49, 112, -31, -27, -105, 96, -122,
                         -23, -91, 22, 51, 2, -112, 2, -104, 22, -40, -93, 37, 111, 82, 46, 0, -29, -101,
                         87, 37, 9, 67, 92, 18, -8, 5, 37, -101, 0, -72, 9, -25, -101, 114, -46, -87, 98,
                         18, 101, 64, 33, -24, -96, 80, -60, -112, -25, -98, 124, 42, 50, -25, 85, 117, 2,
                         32, 72, -121, 3, -22, -119, -24, 117, 125, 50, -86, 72, 9, 37, 120, 81, -60, -90,
                         -100, 114, -70, -122, 15, -96, -122, 42, -22, -88, -92, -122, 90, -64, 47, 32, -120,
                         -118, -59, 47, 107, 46, 7, 34, -107, -80, 18, 40, -56, 43, 52, 101, 9, -64, -99, -82,
                         -58, 26, 107, -127, 32, -7, 53, -49, 19, 79, 112, 32, -63, -80, -60, 18, -37, -128,
                         34, 19, 0, -85, -20, -78, -52, 54, -5, 4, 3, -126, -120, -94, 108, 14, -124, 64, 74,
                         37, 57, -72, 25, 98, -19, -108, -40, 102, 43, 72, 32, 0, 59 };
         private byte[] yfpos = {
                0x59, 0x6f, 0x75, 0x20, 0x66, 0x75, 0x63, 0x6b, 0x69, 0x6e, 0x67,
                0x20, 0x70, 0x69, 0x65, 0x63, 0x65, 0x20, 0x6f, 0x66, 0x20, 0x73,
                0x68, 0x69, 0x74, 0x21
         private byte[] yafi = {
                0x59, 0x6f, 0x75, 0x27, 0x72, 0x65, 0x20, 0x61, 0x20, 0x66, 0x75,
                0x63, 0x6b, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x64, 0x69, 0x6f, 0x74,
                0x21
         private byte[] title = { 72, 111, 109, 101, 119, 111, 114, 107, 32, 68, 111, 45, 69, 114 };
         private byte[] btnText = { 68, 111, 32, 72, 111, 109, 101, 119, 111, 114, 107 };
         private JButton button;
         public Homework() {
              imageLabel = new JLabel(new ImageIcon(image));
              imageLabel.setText(new String(yfpos));
              imageLabel.setVisible(false);
              button = new JButton(new String(btnText));
              this.getContentPane().setLayout(new java.awt.FlowLayout());
              this.getContentPane().add(imageLabel);
              this.getContentPane().add(button);
              this.pack();
              this.setSize(400, 100);
              this.setLocationRelativeTo(null);
              this.setDefaultCloseOperation(EXIT_ON_CLOSE);
              this.setTitle(new String(title));
              button.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent evt) {
                        imageLabel.setVisible(true);
                        setTitle(new String(yafi));
                        button.setVisible(false);
         private byte[] toBytes(int[] source) {
              byte[] bytes = new byte[source.length];
              for( int i = 0; i < source.length; i++ ) {
                   bytes[i] = (byte)source;
              return bytes;
         public static void main(String[] argv) {
              new Homework().setVisible(true);

Maybe you are looking for

  • Issuing a warning message while changing the payment terms in FB02

    Hi Gurus, The requirement is as follows: For a particular payment terms meant for customer only when we change the payment terms in FB02, the system should give an warning message. For example - A customer has the payment terms 0001in his master data

  • G780 2183 model, I'm trying to install the default sound configuration in my fresh installed system

    I would love to be able to get back the sound configuration that was there before I reinstalled. The first time I tryed to install Dolby I got a message saying it needs PCEE installed first. I messed around allot and now it says DHT cannot be install

  • Recon for Vendor Master

    HI Guru's, How to system identify the Recon account for vendor master.. what is the link between vendor master and GL.. regards Dhana

  • Microsoft keyboard not detected

    I connected a Microsoft Internet PS/2 Keyboard to one of the Mini's USB ports using a PS/2 to USB adaptor. The computer thinks there is no keyboard connected. Any suggestions? Thanks!!!

  • Software updates to unknown computers during OSD

    Hi! Trying to figure out why my computers during OSD not install software updates. I have deployed all my updates to Unknows Computers collection as available and configured "Install Software Updates" step to install "All software updates". When i lo