Make new graphic problem

Hi im new in blackberry that I have a problem with the new methods of painting that I have a custom field and I want to make a new class of graphics to draw my pictures below is an example of what I want to do I how you see the idea about what I want to do. Is the right way to do it or is there a better solution for this

package mypackage;
Import net.rim.device.api.system.Bitmap;
Import net.rim.device.api.system.Display;
Import net.rim.device.api.ui.Color;
Import net.rim.device.api.ui.Field;
Import net.rim.device.api.ui.Graphics;

SerializableAttribute public class MyField extends {field}
private int ttwidth;
private int hhheight;
graph graphic private;
    
public MyField() {}
        
}
    
Protected Sub layout (int width, int height) {}
ttwidth = Display.getWidth ();
hhheight = Display.getHeight ();
setExtent (ttwidth, hhheight);
}
    
protected void paint (Graphics g) {}
image = g;
test (Graphic);
}
    
{} public void test (Graphics g)
Bit bitmap = new Bitmap (500, 500);
Grap = g.create (bit) graphics;
grap.drawText ("Test a drawing", 100, 100);
image = grap;
}
}

you get the graphics as a parameter object, and that it's empty, you can do whatever you want with it, no need to create a bitmap or a new graphic object.

Tags: BlackBerry Developers

Similar Questions

  • Graphics problems in macOS Sierra on Macbook Pro

    I have a 13 "mid-2016 Macbook Pro (model MacbookPro 7.1 - 2.66 GHz/8 GB RAM) I've recently upgraded to Sierra. However, I noticed a slight increase in glitches since the upgrade - serious glitches. For example, the animation for arise Applications appears as two images, the majority of applications (including integrated) sparkle and on top of that, applications like Microsoft Remote Desktop and Parallels Pro 12 do not work right due to graphic problems (MS RD comes constantly creates an empty black window while in the analogies I was forced to power off the virtual machine dirty because all the options of the application itself that uses OS x) interface were flickering at which makes them unselectable).

    In fact, the graphics flickering and stuttering throughout what using Mac OS are quite widespread. Open a new window in Chrome, same thing. Same thing with Safari. Or iTunes.

    He got better with each subsequent reboot, but it is still pretty bad.

    Anyone else having this problem or have a resolution for this?

    He got better with each subsequent reboot, but it is still pretty bad.

    Keep rebooting until the problem is gone.

  • Graphic problem with Satellite A200 - 13 M

    Hi all
    I apologize for my English, I'm not a native English speaker.

    2 months ago my laptop wouldn't start.
    I call the Service after sale who tell me to send it in for repair.
    No problem: my laptop came back to me, and it worked fine.

    Now there is a * new * problem (graph): sometimes, and I don't now why, the screen is dirty.
    You can see traces white and white dots all over the screen, especially near the icons.
    It's a little more difficult to explain precisely in English.
    I tried to make a screen, but the bug appear on it; I'll try one tomorrow...

    To make them disappear, I just close the screen, making my laptop into hibernation, and when I open it upwards (immediately), everything is good.
    + Damned, having bug comes back! +

    Someone had this bug?

    _Edit: _
    They have changed the card mother + CPU + graphics card.

    You have described the issue is really strange
    I can t image it could be exactly but if that appears after your GPU and CPU has been changed so I recommend you to contact the ASP again and wonder what goes wrong.

    I put t know if you use a newer graphics driver and BIOS, but you should check if the problem persists even with the update of the BIOS and graphics driver.
    But if you see any improvements so a call of ASP is required

  • Is satellite A10 - possible to install the new graphics card?

    Hello

    I have a videocard Satelite A10, 2.2 Ghz, 712 MB of RAM, provided with your computer.

    I just bought the Sims 2 and thought from the specifications that I would be able to play on my current card. However when I try to run it it gets to the intro screen and then hangs when it is ready to go into the Menu. My first impressions are that I don't have a pretty good graphics card.

    I need a 32 MB T & L capable card so can someone confirm if this is why it would not work on the system.

    If that's the case I'm looking to see if it is possible to install a new graphics card on the machine I want to play more games to date.

    the map I'm looking at is Sapphire ATI Radeon 9600 XT 256 MB AGP8X graphics card. It will work on the machine and it is likely to solve my problem?

    Thank you

    HI Jeff,

    In General, it is not possible to change the graphics card in your laptop. This is because the graphics cell are generally not a component separated (as with a normal PC), but generally a specific graphic chip attached to the motherboard so make the graphics a part of the laptop.

    At the same time, the graphics driver is normally a specially modified version will omit some of the more esoteric aspects of the normal driver to minimize the risk of overheating chip since it does not have its own cooling system. Given this, you will find probably than trying to load the latest graphic website manufacturers drivers (Nvidia, ATI, etc.) will not work, and you will therefore be limited to these pilots provided by Toshiba on their Web site.

    In order to get your copy of the SIMS 2 to run you need to omit or reduce some of the graphics settings in the game itself, or alternatively, you can try to use some of the graphics third-party drivers that are written to provide some of the omitted features of the original notebook drivers. Note that if you do that there is no guarantee that they won't cause your overheating graphics chip, even if I used the ATI Omega drivers for some time now without any problems. You can get them: -.

    http://www.OmegaDrivers.NET/

    Kind regards

  • Non-functional processor DV7 - what a graphic problem?

    Hi all

    Edit: I think that it maybe the wrong section for this so I she published more than crash & block but since I saw some views on this one, did not delete in case someone was following this so leave it here for now. Administrators can remove if necessary.

    I have a product number, dv7-4273us: XZ295UA #ABA. Bought July 11 or 15th, 2011.

    Current problem:

    Saturday, August 16, 2014, I visited a friend to download far cry 1, 2, 3 and the DLC via steam. We left my computer download and went out. On our return 2 hours later, when I tried to make out the hibernation mode, it does not start and the caps lock light kept flashes once, indicating a CPU failure according to the error code to connect to this site.

    Performed troubleshooting:

    I checked the plug and discovered that the taken light was red, so I went taking points, and the 2nd which shine white.

    Connected to an external monitor no dice.

    noticed that the light on the drive on the side right hand turns red, so tried the hard reset - removed the battery and tried to start it with just the connected plug, he came but it's same - caps lock flashes indicating once cpu failure.

    Previous problems:

    So far, the only problem I had with the computer was that full screen, sometimes the light blue light and I would not be impossible to access anything. I would be put to sleep to get it out or restart.

    My Questions:

    (1) could download have hurt the CPU?

    1 (b) if I ran out of har of disk space to download making the failure of the cpu?

    (2) the graphic problem I had known would be the cause of the failure of the cpu?

    2B) if I replace the map move the cpu would resume the feature?

    (3) is anyway to get the laptop working again without having to buy a new processor?

    (4) I have used my computer plugged into a surge protector, but when I visited my friend was firectly plugged into the wall, he suggested that the computer overheating. Is it correct?

    4 (b) but do not tell the flashes, could something else have been damaged?

    (5) it is just better to buy a new computer and forget fixing it? I can't afford it, but I'll ask just in case.

    Thank you in advance for your help, much appreciated!

    Note: I'm not in the United States, I'm in Barbados, so I do not have access to online services like amazon - they often don't ship here, and I won't be able to get my computer to any physical location in the United States for repair.

    Hello

    You should be able to order a replacement CPU from the laptop. This would occur in the maintenance and Service guide (which is in my previous post). It can be a stand-alone item however, some laptops, it's part of the system board replacement.

    I hope you're able to help.

  • Windows 7 Graphics problem: graphics would become all deformed and weird looking

    original title: graphic problem Windows 7

    Hi, I recently got a new laptop with Windows 7 pre-installed on it.  Sorry if this problem has already been asked before, but I couldn't find someone else with the same problem I have.

    Sometimes, the graphics would become all deformed and weird looking.  Look at the screenshot I took:

    And it occurs for each program, not only on the desktop.  I could usually get rid of the lines by reducing the window and maximizing it again.  But it's so boring.

    My graphics card is a Mobile Intel (r) 4 Series Express Chipset Family.  I updated the driver from last night, but the same thing happens again.  So I don't know what else could be the problem.

    Thanks in advance!

    Check if your video card has its own program/parameters adjustment control panel and use it to adjust your settings more towards the side of the 'quality' rather than the side 'Performance' and see if that smooth your edges for you.  Also, you said that your system is new.  You can look into having served through your warranty.  You also need to make sure that it is not getting too hot.  Laptops produce a lot of heat and if it doesn't get good ventalation / or enough, then he can begin to display this type of behavior.  I had to go out and get a 'cooling block' for mine to keep it cool.  I hadn't started to have problems because of the heat, but I decided on my own that he was too hot.   Hope this bit of info helps.

  • New graphics card issues.

    Hello everyone. I intend to put in order a new 970 GTX soon but before I do, I have some question if all goes well a kind of knowledgeable people can answer. Right now I use a GTX 750 ti superclocked. This one to be exact.

    Before going I should post my listing so you can help me better.

    I use a Dell Inspiron 3847 desktop computer

    Operating system
    8.1 Windows 64-bit

    CENTRAL PROCESSING UNIT
    Intel Core i5 4460 3,20 GHz 28 ° C
    HASWELL 22nm technology

    RAM
    8.00 GB Dual-Channel DDR3 @ 798 MHz (11-11-11-28)

    Motherboard
    Dell Inc. 088DT1 (CPU 1) 28 ° C

    Graphics
    E420VO (1920x1080@60Hz)
    2047 MB NVIDIA GeForce GTX 750 Ti (EVGA) 29 ° C

    Storage
    931GB Seagate ST1000DM003-1ER162 (SATA) 34 ° C

    Optical drives
    Virtual DiscSoft SCSI CdRom Device
    MATSHITA DVD +-RW SW830

    Audio
    Razer Surround Audio Controller

    My first question is, what I intend on getting this new 970 GTX,

    (I hope I write these link correctly, because they look weird in this post ATM heh)

    The problem is that you can see here in this thread,

    The desktop computer Dell Inspiron 3847 isn't that much room for graphics cards. That's why I'm going for the compact size ones. Now in this thread according to the OP, fortunately the big card bought winter sports. Now, the concern that I have with the card I want to order is not the length, but the height.

    I have both the card Op ordered are about 4.38 in height. The card I want to order is 4.80 in height. Even if I know the length it should make sense, so I need to know its not too big. I know this may not seem like a big difference to some, but I'm still very new for PC parts and everything.

    My first experience out of integrated graphics has been a few months when I ordered and installed a new graphics card and power supply. I sure hope I have though because I can barely play dragon age: origins on medium setting without it hanging out outside sometimes, and it's a game older for my card so Idk why she did this. Maybe I did something wrong? I hope not.

    So I hope that maybe someone with the same office or someone who is familiar with the desktop area could tell me if the card could hold, if it's all GOOD (the one that won't break after two weeks) 970 GTX which CAN would be awesome. I know the one that fit the OP in this thread has ordered, but some of the comments say scary things so idk. I'll definitely get a damage protection plan.

    Before my second question I'd like having this one ended. Its simple but it depends on the card I order.

    To all of you who took the time to read all this to try to help me, thank you so much in advance.

    JoeyFlow

    ASUS GTX970 - DCMOC - 4GD5 GeForce GTX 970 4 GB 256 - Bit GDDR5 PCI Express 3.0 HDCP video card as shown in your link, should keep the Inspiron 3847 MT chassis very well, but you will need to replace the power supply, because this card requires an additional power connector 8 pin EPS and a 500w/600w PSU, instead of the default 300w unit.

    Note: As the card is a unit of double width, you lose using the PCIe x 1 next to the card slot.

    Bev.

  • Graphic problem of mission control

    Hi, I have an early 2013 MacBook Pro retina runs El Capitan 10.11.6

    Launch of Mission Control, there is a graphic problem: miniature Office are all gray, as you can see in the screenshot.

    I already tried to quit smoking Dock in activity monitor and running "killall Dock" in the Terminal. Restart the system, the problem persists.

    Any ideas?

    Hello GalaxyWorker,

    Thank you for using communities of Apple Support. It is my understanding that when you use the Mission control the thumbnails are gray. I often use in Mission control, so I know not being able to see the thumbnail of the available screens can be useful. I'm happy to help you to get this resolved with you.

    You did a great job trying to fix this problem yourself. First, I recommend that you test the problem in safe mode. Boot in safe mode allows your Mac perform certain controls, delete the cache and prevent the opening and start-up items to open automatically. Follow the steps below to start in safe mode.

    1. Start or restart your Mac.
    2. As soon as you hear the startup tone, hold down the SHIFT key.
    3. Release the SHIFT key when you see the logo Apple appears on the screen.

    After the Apple logo appears, this may take longer than usual to reach the login screen or your office. This is because your Mac performs a check of directory of your drive to boot in safe mode.

    To leave safe mode, restart your computer without pressing any key during startup

    Try safe mode if your Mac does not end commissioning

    If the problem does not occur in safe mode, but returns when you restart normally, try to disable the login items using the link below.
    OS X El Capitan: If you think you have incompatible connection points

    If the problem occurred then in safe mode, it is possible the user settings or files are the cause. In this case, please try the issue in a new user by following the instructions in the following link.
    How to test a question in another account on your Mac.

    Have a fantastic day!

  • new graphics EVGA Geforce gtx 750 ti fails on HP pavilion H8-1114

    Hello

    I just bought new EVGA Geforce GTX 750 ti SuperClocked for my Pavilion HP H8-1114 and when I replaced the old GPU's GT 520 with the new, but it does not work and the freez of screen with the blue screen of HP and beeps several times.

    I found the same problem and it is resolved here:

    http://h30434.www3.HP.com/T5/desktop-hardware/new-graphic-card-GeForce-GTX-750-TI-failing-on-HP-PAVI...

    Exactly the same problem that I have that my HP desktop computer is a more recent one year, so the question is if I do the same thing that sugested him will be resolved? If this isn't the case, could you please solve the problem for me. Because I believe that there is no problem with my PC hardware and it should work fine.

    Best regards and thank you

    -Ken

    Hi Ken,

    Watch high aon back of the graphics card for a switch.  See the image below.

    You should have received a leaflet in the box describing the use of the switch (legacy mode or UEFI).  If your PC is a version 8 HP BIOS then disable secure boot if set. If your PC isn't at the level of the BIOS version 8 and then the switch must be in position inherited.  The brochure should describe the use of the switch.

  • Pavilion HPE - 533 sc: installed new graphics card. Hard drive stops

    In order to improve my graphics performance for games that I invested in this graphics card:

    NVIDIA gtx 950, links shows the map and specifications:

    http://gadgetsngaming.com/2015/08/21/nVidias-GTX-950-at-160-easily-beats-750ti-in-1080p-gaming/

    How fitting the screen stops at initial HP logo and "press ESC to start menu.

    I can also clearly see that disk hard fails or starts the Windows 7 Edition operating system home premium.

    I am running Nvidia GT 630, and back on this card machines works well again.

    It just loks like the new graphics card prevents the hard drive to run.

    All attached cables (power cable 6 pin) and locked firmly into the PCI slot.

    Is it possible that the new card draws so much power that it prevents the hard drive of the race?

    When you press ESC, it seems that the hard drive is registered in the Bios.

    This nvidia gtx 950 is better? It seems to be more the size of the one I have - nvidia GT 630. Link shows specifications.

    http://videocardz.com/NVIDIA/GeForce-900/GeForce-GTX-950

    *

    First of all try to help me, please do not write that I should get a new machine - I thought that, despite this current have worked without any problems for 5 years now.

    Do not forget that I have to install a lot of programs and to transfer other data - it would be nice to avoid this.

    If if can not be fixed - which stationary HP desktop computer (I have a laptop) can have the new nvidia gtx 950 mounted?

    http://store.HP.com/us/en/PDP/desktops/HP-envy-Phoenix-810se-desktop-j6n64av-ABA-1

    or this

    HP Pavilion Desktop-500-585no

    Thanks in advance

    I'm not familiar with current PC for sale, regarding upgrades.  Since is considered a new HP, try looking at the list of options on the HP website.  Most higher end PC have the options that you choose before buy you, to customize the generation.  Choose a model with options that match your criteria now and notice the upgrade options - write down them - to avoid confusion later.  OR go with a customized version, but this could mean significant spending.  It is the hand off the coast between prebuilts and personalized.

  • Satellite A300-RJ1 - cannot install the new graphics driver from Intel page

    Hello.

    Another problem.
    When I use the "integrated" Vista, I can not install the new graphics driver (intel inside).
    Whenever the error message: the driver is not validated by your system, please contact your producer.

    So if I install a clean windows, so I can install the new graphics driver: S and I want to install because it is much more recently than the preinstalled :(

    Hi mate

    You can install this driver, but you need to use different installation procedure.
    You must install it in the Device Manager.

    Here, you can choose Advanced Setup, then choose don't search. I will choose the driver, then point to the driver files that you have stored on the HARD disk and complete the installation.

    But note; I read here that the use of non-Toshiba drivers is always at your own risk

  • I think that I need a new graphics card for my Satellite M70 343

    Hello

    I had problems with my laptop. After a start-up time specifications and give a problem with the IALMRNT5 pilot report. The laptop also gives some display problems, after a certain time, then another graphic resolution is displayed.

    I have restored the software but is not a solution and also I downloaded the drivers from the Toshiba Support Site!
    I think the graphics card to give problems.
    Where can I buy the new graphics card?
    Installed: Intel 915GM/GMS, 910MS Express smart card.

    Hello

    It s not possible to exchange the VGA card in your system, since the VGA is soldered on the motherboard (the most important thing of your laptop on which all components are on) and if you have a problem with your graphics card then you should contact a local service partner authorized, due to a hardwarecheckup or a repair of your device.

    To find the closest just check the following link:

    http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/generic_content.jsp?service=EU&ID=ASP_SUPPORT

    Good luck
    See you soon

  • Do I need a new graphics card

    I have a HP Pavilion Slimline s3400f running Windows 7 32 bit.  I have a HP x 2301 monitor.  I need a new graphics card to take advantage of the speed of 3 ms of the monitor?  I can renovate such a card?

    Hello

    Very nice monitor. The HP Slimline s3400f PC has only a power of 160 watts power is a big problem for the addition of a discrete video card that would allow you to use digital instead of analog video video.  You will see an improvement in the quality of the image with the digital video.

    It is possible to replace the power supply and add it to a profile low low-power video card.

    Contact Athena and get a recommendation of the PSU. HP Slimline power of Athena. There are also mini-ATX converter cable.  If you get a 220 watt PSU then the below video cards should work.

    Look here in HP Partsurfer for video cards that are used in the new Slimline models with a 220 Watt power supply.  These cards have been made specifically for the HP Slimline PC with a 220 watt power supply.

  • Get a new graphics card for the HP Envy 700-214

    Hello

    So I tried to get a new graphics card for my HP Envy 700-214, but I'm not aware if this map is compatible or if it would have a negative impact on my system.

    http://www.GeForce.com/hardware/desktop-GPUs/GeForce-GTX-750-TI/specifications

    I don't want my system to be harmed in any way.  Here is the link to the computer.

    http://support.HP.com/us-en/document/c04100558

    Thank you!

    Wolfking98, welcome to the forum.

    Here is the video card manufactured by EVGA.  It shouldn't harm your system somehow.  However, if you have trouble with the installation, you can contact their Technical Support (1-888-880-3842) or online.  They were very useful for me.  Read the reviews to see what users have to say about it.  As you can see, there are a lot of comments and appreciation 5 eggs.  You can't do better.

    Please click on the Thumbs up button '+' if I helped you and click on "Accept as Solution" If your problem is resolved.

  • Can I put a new graphics card and power supply in my computer.

    Hey all, I have the model P7-1459 and it is good, but I was hoping maybe give him a boost of game. But I was not able to know if she could handle what I want to do. The new graphics card would require a 450W power supply, and I do not know if this model could handle. Anyone know of a way or another? Need help.

    Joshua, you are welcome!

    I'm sorry that I misunderstood your question.  I thought that you wanted to know if the computer would process the card.

    Yes, you can upgrade the power supply (PSU).  I suggest to measure the PSU existing and comparing these measures to the one you choose.  I love OCZ and Corsair.  They will provide quality amateur with a reasonable price.  A good video card requires a clean and stable power supply.  I recommend at least 500W; 550W at 600W would be even better.  This would allow for future updates.  The computer uses only the amount of energy needed to operate the components.

    I hope this helps.

    If your problem is solved, please click "accept as a Solution.

Maybe you are looking for