URGENT: How to fix an application with the screen resolution?

HI everyone,
I am desprate and need help.. I have developed an application with Java swing and awt (JFrames, JPanels and...). This application displays perfectly with 1280 x 1024 screen resolution but in a situation where the screen does not support this resolution, a part of my application will not appear. I can not even scroll down to see the reste of the components. Does any one has any idea that how I can resolve this problem! I mean how either I can make my JFrame or panel to scroll down or to change the size of the components according to the resolution!
Thank you very much and wait for a reply :)

One of the possible reason of the problem is you must have hardcoded the size of panels and other container that is just right for the screen resolution 1280 x 1024.
The solution is set the size of the containers that depends on the resolution of the screen.
You have not explained much detail about the scrolling problem. But I suppose that you have a scrollpane in you GUI and you want to scroll the component inside it even at another resolution.
try using this
if p is the panel that is added in the scrollpane then set its prefered size.
p.setPreferredSize(resolution dependant size).

Similar Messages

  • How to fix a problem with the order of strings in a JSON response for a CFHTTP request?

    Good morning, guys! (It's 10:50 a.m. in Brazil)
    First of all, I'm still new at CF and my questions may seem too much silly and my English's not the best, so, please be patient with me. hehe
    Well, I'm accessing a link via CFHTTP that gives me a JSON response. I'm not familiar with JSON yet, so I'm working it as a string and using string functions (Find,RemoveChars,Replace,etc), but it happens to me that I'm receiving a certain kind of order of the strings list from the JSON when I access it directly from the browser and other kind of order totally different when I access it from the CFHTTP.
    I only figured it out because I was working at home with my code and there everything went just fine as expected. Then I brought to my job to develop a little bit more as soon as I get a free time and here my code doesn't work anymore. When I took a look at the JSON by a CFOUTPUT, I realized the strings were in a different order.
    Does anyone know why is it happening?
    Link to the JSON: http://sigmine.dnpm.gov.br/ArcGIS/rest/services/extra/dados_dnpm/MapServer/0/query?text=83 0620/2012&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelInter sects&where=&returnGeometry=true&outSR=&outFields=FID,Shape,PROCESSO,ID,NUMERO,ANO,AREA_HA ,FASE,ULT_EVENTO,NOME,SUBS,USO,UF&f=pjson
    Basic code simplified to find out that the order of strings were coming different when access by CFHTTP:
    <cfhttp url="#URLAbove#" method="get" result="DadosDoDNPM" charset="utf-8" timeout="10000" />
    <cfset DadosJSON = deserializeJSON(DadosDoDNPM.FileContent) />
    <cfif arrayLen(DadosJSON.features)>
        <cfset CodigoFonteJSON = ToString(serialize(DadosJSON.features)) />   
        <cfoutput> #CodigoFonteJSON# </cfoutput>
    </cfif>
    Is there a way to fix it and to make my code work everywhere?
    If it matters, I use Railo at home and at my job.
    Since now, I thank you.

    When you deserialize JSON data, ColdFusion converts it into native structures and arrays (roughly equivalent to JavaScript objects and arrays).  In ColdFusion, structures are unordered (that is, they don't maintain keys in any particular ordered sequence).
    This really shouldn't be a problem though, at least not if you just want to work with the data contained in the deserialized JSON structure.  So DadosJSON should be a native ColdFusion structure, and you can interact with it like any other structure in ColdFusion.  In fact, you should not have to re-serialize it at all unless you need to send it to an external application using JSON.
    Why are you reserializing the data?  And why use serialize() instead of serializeJSON()?
    -Carl V.

  • How to fix a problem with the discharge rate of the battery in the iPhone

    Hi I have a question namely how to fix the problem of discharging the battery in the iPhone 4 with ios7.1

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • How to create web applications with the LabVIEW web server

    Wonderful Forum,
    I've noticed that sometimes it can be tricky for LabVIEW users to learn how to create their own custom web clients using the LabVIEW web server. I created a LabVIEW web development community group and wrote some tutorials to teach the basics of creating web clients using HTML, Javascript, and AJAX. The idea is that LabVIEW users without any web background can quickly look at some tutorials and examples to get started on their own projects.
    https://decibel.ni.com/content/groups/web-services
    What do you think?
    Joey S.
    Software Product Manager
    National Instruments

    Hi Joey,
    A great idea! I recently presented at a local user group meeting about my WebSockets API (see the links in my signature). I've uploaded the presentation and the demo code I gave to our UG here.
    I think the barrier to entry is with needing to know the web languages (e.g. html/css/js) as well as writing your LabVIEW code. I have joined the group and look forward to seeing some interesting content on there! Certainly some demos of using AJAX to make requests to Web Services and do something with the data (e.g. display on a graph) would be a good place to start.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • How to fix a scratch on the screen...?

    Hey Folks,
    While I was at the airport yesterday - some smart *** bumped into me and dropped my iphone on the ground (face first) and I got a scratch on the sreen maybe 2cm long and .5mm width (same depth, I would say - sorry for being very technical)...
    Now when I turn on my iphone and when the light some on the screen there is a multicolor reflection coming from this scratch, which is super annoying cause when you are looking on your screen you can notice this multicolor reflection at all times.
    So - how can I find a solution to this? Is there any? Or I just gotta live with the fact that I have a noticeable (and super annoying scratch on my screen).
    Thanks,
    -Joey

    Smeagol7 wrote:
    What did you use and how did you use it? Sounds like you do auto body work. Can you give the details and instructions on how to accomplish this.
    No I'm not in the auto body biz, I do make detailing products though and my hobby is customs and hot rods.
    I use a very high end polish that's not found in stores but can be bought online or by phone. The maker is Zaino Bros... http://www.zainostore.com These polishes and glazes form a very tough protective coat on high end finishes. The cars in this link http://dftowel.com/lsc are treated with Zaino so this should give you an idea what can be achieved.
    To protect the phone I first lightly wiped it down with a dilution of Dawn dish detergent which removes all greases and oils that may be on the surface. Just dampen a sponge and wipe the surface.
    I then polished and buffed with Zaino Z-2. This was done three times front and back.
    For the final coat I lightly applied Zaino CS which is a hard glaze and allowed it to dry for an hour before using the phone.
    The buffing towel used is a DF Concours Towel http://dftowel.com. (DON'T USE AN OLD T-SHIRT!!! IT WILL SCRATCH)
    These steps will form a very hard protective coat on the phone and yet it is optically clear. Fingerprints, dust, smudges, whatever just wipe right off.
    Leo
    Message was edited by: LeoC2

  • How to fix MacBook Pro when the screen goes completely grey in start up?

    This problem has been since yesterday and I need help ASAP please! But my MacBook didn't start up after it had died so I had to power it up with the power button. The problem is the screen with the apple logo emerged with the loading circle but the screen was red! I don't know what that means, but after the screen moves on, it goes to a completely grey screen and doesn't go any futhure. Any help would be greatly appreciated! I saw that it may be because of a faulty wire which my I have been using a USB wire to recharge my phone that might be the reason, but the computer continues to freeze and has troubles starting up. Please HELP!!!!

    See >  http://support.apple.com/kb/TS2570
    Also see >  When I start up my Mac book a grey screen appears

  • Does anyone know how you can play video with the screen locked and not just recorded video. Like downloaded video?

    So I want to be able to play video mp4 for my kids and lock the screen so that they don't disable or stop the video. Is there anyway you can lock the screen and play video? I've seen an app that tries to do this, but it only plays video recorded from the device. Also, it's not very good. I've also looked at IOS 5, but it only seems to support audio, not video, unless I am not doing something correctly? What happened to the simple old manual 'hold' switches that most devices have, like the PSP etc? It seems like all of the touch devices have neglected a simple touch disable button? Anyway, please provide any enlightenment here. 

    actually nevermind, it's working now. I closed iTunes, then waited a little, then double clicked one of my iTunes video files from my documents, which opened up iTunes again and the video started playing. I tried restarting iTunes before and that didn't work, so maybe for those who have similar problems, just try clicking on the video file in your documents/desktop of your computer, rather than directly from iTunes.

  • How to fix iphone 4 that the screen went black but it is on

    My iphone 4 screen went black but the light is on.  I can hear the phone rings and other sound from the screen but I can't answer the phone.  The screen won't come on.  What to do?

    Try resetting:  Press both the home and on/off buttons for 10-30 seconds, until the Apple logo appears. (No data loss)

  • How to distribute my application with the smallest number of file

    Post Author: Ricolas
    CA Forum: General
    My application uses Crystal Report to generate reports (print function and PDF file). In fact my application only use the class "ReportClass".
    My application was developped with Crystal Report 9.
    Now, I am trying to use Crystal Report 11.
    Up to now, the size of my application was about 11 MB. My problem is that using Crystal Report 11 I don't succeed to create an installation routine with a such size. I don't want an installation routine > 15 MB.  How to do it ?
    In my application (.net) I have the references to the following assemblies:
    CrystalDecisions.CrystalReports.Engine
    CrystalDecisions.ReportSource
    CrystalDecisions.Shared
    CrystalDecisions.Windows.Forms
    Are there any "light" merge modules which allow to use only the class "ClassReport" ?
    Thanks in advance

    Hi John,
    To reset Mail completely, simply delete (or move) everything in ~/Users/YOURUSERNAME/Library/Mail/
    You might try rebuilding your mailboxes. To do so, launch Mail, choose "MailBox" and then "Rebuild." You can also force Mail to do this manually by going to the same location above and deleting the "Envelope Index" files.
    Be careful: if your email account is set to use POP3, it's likely that the only place your email exists is on your Mac. You should, if possible, switch to using IMAP access for email. That will ensure that your email always stays on the server, which will prevent loss in case of disaster with your personal computer.

  • Building AIR Applications with the NetBeans IDE

    Hello Everyone,
    Here's a link to screencast showing you how to Build AIR
    Applications with the NetBeans IDE.
    http://xwisdomhtml.com/netbeans-and-air.html

    Neat!

  • Fixing GR/IR with the new GL and new splitter program

    Dear SAP Guru's,
    I need help understanding how to fix GR/IR with the new GL and new splitter program in ECC 6.0.
    Does anyone have any information or direction as to where I can find information on this?
    Thanks!
    POINTS PROMISED

    no response

  • I reset my phone and it now receives calls that were meant for my husband. I know how to fix this with messaging and facetime, but can't seem to find how to make it stop with the calls. Please help.

    I reset my phone and it now receives calls that were meant for my husband. I know how to fix this with messaging and facetime, but can't seem to find how to make it stop with the calls. Please help.

    It may be due to Continuity
    The following quote is from  Connect your iPhone, iPad, and iPod touch using Continuity
    Turn off iPhone cellular calls
    To turn off iPhone Cellular Calls on a device, go to Settings > FaceTime and turn off iPhone Cellular Calls.

  • How to install .exe applications and the java on m...

    hi ! sorry if this has already been discussed but i wanted to know ~~~ how to install .exe applications and the java on my n9 ~~~ ... because i wanted to use plenty of other apps which are not supported  but these 2 would help fix the issue

    Is it stil not possible to install java applications on N9?
    Files containing JAD and JAR-ending in the file name.
    I am not familiar with Nokia N9 so I ask even if I suppose that JAR and JAD files are not able to install on a Nokia N9.
    Nokia 808 again (delight Belle), Nokia E7 and X7 ( again, all on Delight Belle...after some time on Nokia Lumia 925 (retired), 1020 (not that great)and Lumia 820 (Replaced my router at home, great for internet sharing).., N9 The best device ever (use it as much as Lumia 1020), Nokia 700 (Sport Phone/My Love :-) ) Nokia 701, Nokia E6 (Should have a follow-up from Nokia among with larger screen, NFC, Autofocus), Lumia 800 (Retired After 6 weeks), -Sports Tracker-Nokia Internet Radio-Handy Safe-Skype-Bambuser-Screenshot app pro-fMobi-ComingNext-Manual TaskSwitcher-jagiTimer-Easy StopWatch-Boldbeast-Equalizer-Financial Calculator-WiMP Music-YTasks-Davi-Thumbnail Folders-BizCalendar-Tiny7-Situations-nn reeder-Sport Timer-CameraLover-CameraPro-GrabRadio-LiveScore-Poddi-Gravity-SkyFilesPro

  • HT1366 How to fix Flashing Folder with Question Mark on Mac

    How to fix Flashing Folder with Question Mark on Mac

    RichardEL is probably correct.  I’ll go through your questions.
    > there is no Mac OS partition, I assume it would be directly underneath the HD on the left?
    I have not seen this particular condition where the hardware disk icon appears but the system volume that is supposed to be below it does not.  The System Disk partition would be below the HD icon indented to the right.  It is usually called “Macintosh HD” unless you renamed it.
    > when I go into disk utility my HD appears on the left, but I can repair or verify it
    Odd.  It appears but you cannot manipulate it with Disk Utility.
    > The S.M.A.R.T status reads verified
    If it did not say Verified then it would indicate a problem.  Saying Verified does not rule out problems but I think it indicates it is still breathing.
    > Is the HD deceased?
    If you booted the Recovery Partition (Boot, Command-R), which it sounds like you did, then at least part of the disk is still breathing.  If it took a long time to boot then that may have been a Network Recovery boot which would indicate the disk is very sick or dead.
    >  [If I] restore from time machine [will] everything will be back as it was before?
    Yes.  That is the beauty of Time Machine.  All your data, applications, and system preferences will be as they were as of the last backup.
    > I was thinking of erasing the HD, would this be of any help or do I just need a new one?
    Given what you reported from the Disk Utility steps you took it is unclear to me if there will be a way to repair the current volume, if you can erase and install from scratch or if you need a new disk.  Before proceeding it may be useful to have an expert at an Apple store look at it for you.  They may be able to revive it without a clean install or new disk.
    As was the case above, it could be a good disk with a bad cable in which case a new disk is not going to help.  To test this you can purchase an inexpensive external enclosure, remove the internal disk, place it in the enclosure, plug it in and then use Boot-Option to attempt to boot from the now external disk.  Here are links to the screwdrivers and enclosure you would need.
    $5 Toolkit: http://eshop.macsales.com/item/OWC/TOOLKITMHD/
    $22 USB 3.0 enclosure: http://eshop.macsales.com/item/OWC/ES2.5BU3W/
    If you attempt a clean install, use the Partition tab to repartition the disk, selecting one partition and with “Options…” electing a GUID partition.  Then use the Erase tab, select “Security Options…” and set it to write a single pass of zeros.  This will write to every sector to map out bad blocks.  (If you have an SSD do not write a pass of zeros.)
    If you do need to replace it I recommend an new inexpensive (~$100) and super-fast hybrid SSHD drive that has an 8 GB SSD cache that makes the data fly.  Google “Seagate 1 TB hybrid SSHD”.

  • How to start a application with a login window?

    hi there
    does anyone have any idea on how to start an application with a login window? a login window is the first frame or window to be displayed when an application starts running. and only correct login id and password have been entered the real application will start. any sample out there? thank you.

    You can start a new thread by making a thread object and passing it an implementation of a runnable object. Runnable has just one method, public void run(), this is was gets executed in a second thread. perhaps the code you would use would look something like this.
    <code>
    // set up thread for login window
    new Thread(new Runnable() {
    public void run() {
    // construct your login window here
    // when you are done processing the
    // password....
    if(goodPassword) {
    authorized = true; // a global variable
    notifyAll(); // don't forget this
    else {
    System.exit(42);
    }).start();
    // control does not stop this code gets executed while
    // the above thread is running.
    // Set up main program here. This is done in the
    // backround.
    while(!authorized) {
    synchronized(this)
    { wait(50); }
    // now when the user logs in this frame pops
    // up real quick.
    myFrame.setVisible(true);
    </code>
    Hope you can figure it out.. good luck :)

Maybe you are looking for

  • WebServer 6.1 SP3 SSL reverse proxy to Sun One Application Server 7

    I have an application in the appserver7 that requires SSL authentication. I have already installed a self cert in the appserver7, and the authentication works fine when I browse directly to the appserver. The appserver7 has both listener for port 80

  • Can we schedule web analysis report on workspace

    I am working on Hyperion 9.2. i want to know that is it possible to schedule the Web Analysis reports on workspace?

  • ABAP proxy with Multiple PI system and Single SAP ECC

    Hello Folks, In my current project i have 2 SAP Pi system, PI7.0 and PI7.11. Currently 80% of the interfaces are on PI7.0 and we are planning to move interfaces to new PI7.11 next year. Old environment has lot of ABAP proxies ECC is configured to sen

  • Session Binding Question

    Hello All, I might be missing something, but I am trying to bind a session when a user logs in and out of my web application in order to be able to actively track online usage, however I can't seem to get it to work. I would appreciate any help that

  • CS4 Doesn't Show Saved Optimized Settings

    I'm used to CS3's way of doing things. When in "Save For Web and Devices...", i tried to save some settings and was presented with a file dialog.  Having no idea where they should go in order to show in the pop-up, and not finding a satisfactory answ