A few General Questions about Layouts

Hey.
I'm pretty new to Swing so I don't know much. My first question is do you have to use a Layout Manager to organize components on a JPanel? Is there no pixel way to do it? Secondly, for layouts, specifically for GridBagLayouts, is there any way to display the grid for developing purposes?
Thanks in advance.

I'm sorry but the above code did not work. Even though I added the components, they still did not show. Anything I missed? Thanks.
My code is below:
import javax.swing.*;
public class SwingTest {
    public static void main(String[] args) {
        // Create application frame.
        JFrame frame = new JFrame();
        frame.setSize(500,500);
        JPanel foo = new JPanel(null);
     This 1 arugment constructor takes the layout manager as the argument.
     You can alternatively do this:
     JPanel foo = new JPanel();
     foo.setLayout(null);
     JLabel label1 = new JLabel("Label 1");
     label1.setLocation(10, 10);
     JLabel label2 = new JLabel("Label 2");
     label2.setLocation(10, 50);
     foo.add(label1);
     foo.add(label2);
     frame.add(foo);
        // Show frame.
        frame.setVisible(true);
}

Similar Messages

  • A few general questions about sequences, framerates (fps), audio sources

    If I create a sequence in Pro that is 23.976fps, matching my audo from Canon T2i shot with 24fps... and an audio with 48hz... and then if I import an audio (music) with 44hz..
    does it affect my output settings?
    Another question. If i have 23.976fps sequence, and I output it for Vimeo (which they say should be 30fps) does it have ANY effect on video/audio synchronzation?

    PrPro can handle most common Audio Sample Rates, like 44.1KHz @ 16-bit, and will Conform those Assets to edit in a 48KHz 16-bit Project. Other than an extra moment of the Conforming process, should not be an issue. This ARTICLE will give you some background on Conforming and Indexing.
    Good luck,
    Hunt

  • A few general questions about the different iPod Touch models

    What is the difference between the 2nd Generation and the 3rd Generation iPod Touch?
    How often do they release a new generation model?
    Does anyone know yet how the 4th Generation model will compare to the 3rd and 2nd Generation models?
    Thank you.

    What is the difference between the 2nd Generation and the 3rd Generation iPod Touch?
    See:
    http://en.wikipedia.org/wiki/Ipod_touch#Models
    As to when a new model might be released and what it might feature, no one here knows or can say. We'll all just have to wait and see. As Sandra indicated, you can read the various rumor sites, but as to what rumors if any you can believe, your guess will be as good as ours.
    Regards.
    Message was edited by: Dave Sawyer

  • General question about iTunes Match and multiple libraries

    Hello to everyone,
    I have a general question about the iTunes Match service, which is available since yesterday in my country (Italy). Currently my library situation is the following:
    Computer A (desktop, Windows 7): "big" iTunes library (about 20 GB), at the moment not associated with my Apple ID
    Computer B (MacBook Air 2011): "small" iTunes library (about 5 GB), associated with my Apple ID
    At the moment, both my iOS devices (iPhone 4 and iPad 2) are synchronized with the smaller library on the MacBook Air.
    Question is as follows: should I subscribe to iTunes Match, would it be possible to upload the "big" library (provided I associate it with my Apple ID) to iCloud while keeping my devices synchronized with the "small" one?
    Ideally, at the end of the day, the situation should be the following: both iOS devices with music from the small library + possibility of downloading songs from iCloud (coming from the big one). Is this possible?
    Maybe the question sounds stupid, but I want to be sure about this before paying for the service.
    Thanks a lot.

    Yes, you could also associate your larger library with iTunes match if you associated your Apple ID with it. However any purchases in the library made from another Apple ID will not be matched with iTunes much.
    If both libraries are part of iTunes match, then all your devices will see all of the content from both libraries, which content you choose to have on those devices and which you have accessible via iTunes match is entirely up to you.

  • Newbie question - general question about e-mail sync

    Hi,
    I have a general question about email sync and BlackBerry smartphones.  Are there any devices that allow email syncing with a Microsoft Exchange 2007 system that do not require the BlackBerry Enterprise server?
    Thanks; sorry if this has been asked before but I was unable to find it in the forums, documentation, etc.  Everything I found assumes that for this kind of environment you will be using a BlackBerry Enterprise solution, but I can't assume.
    Thanks again.
    Solved!
    Go to Solution.

    Hi and Welcome to the Forums!
    If the Exchange server has anything that faces the internet (OWA, POP, IMAP), then BIS can be used to handle email (only email...calendar and contacts require BES to sync OTA).
    Or, a PC, inside the network (but with an internet path) and logged into the email server (using Outlook), can be left running, using the RIM Desktop Software's Desktop Redirector capability to forward  messages to the BB.
    Those are basically the options.
    Hope that helps! Let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Few basic questions about database administration

    Hello,
    I have a few basic questions about database administration.
    1. I switched one of my oracle instances to archivelog mode. I just cannot locate the archive log files on my windows system. The %ora_home%/ora92/database/archive directory is desperately empty...
    2.What is the tools01.dbf datafile used for?
    3.What is the undotbso1.dbf datafile used for?
    Thanks in advance,
    Julien.

    1. The archive log location needs to be specified in your init.ora file. By default, Oracle will place the archive files in either ORACLE_HOME/dbs or ORACLE_HOME/database.
    2. The tools01.dbf file belongs to the tools tablespace which should be set as the default tablespace for system. It primary purpose is to hold Oracle Forms and Reports database objects, however, it should also be used for holding other non sys database objects such as the perfstat (statspack) or other third party database schemas e.g. quests sqllab.
    3. undotbs01.dbf file belongs to the undo tablespace.

  • General Question about SAP Documentation. Where to find?

    Hello,
    I am relatively new in the SAP business and so I have some general questions about the SAP Documentation.
    Often internet-links like
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/FIBP/FI-AP-AP-PT.pdf
    are posted here by group members.
    But where do these group members find these documents?
    All I can see at help.sap.com is IDES (the model company created by SAP)and the WWW-version of the SAP-Bibliothek.
    Were can I find these PDF-Files?
    I would appreciate any hint and tip!
    Thank you!
    Kakue

    thats true! i dont know how to find either. Everytime i need something i ask on the forum.
    Here's a good link
    http://www.easymarketplace.de/online-pdfs.php
    Plz reward points if helpfull

  • A Few Basic Questions About Random Shut Downs (RSD)

    i think my month and a half old macbook has "RSD", its a white 13 inch which i bought refurbrished, Iv got a few questions about RSD and apple serice
    First, is there any way to avaoid rsd or is it soemthing you really have no influence over?
    secondly, if i send it in to get serviced, how long might it take (it has to ship from new england if that means anything)?
    has anyone got theres serviced recently and still had problems?
    Also will the RSD get worse, should i send it in sooner rather than later (right now i can deal with it, though if it does get worse itd be a pain)
    and last should i expect to lose everything on the harddrive ifg i send it in?

    First, is there any way to avaoid rsd or is it
    soemthing you really have no influence over?
    You can't avoid it. You can temporarily reduce it by:
    1. Holding down the power button at startup until it beeps.
    2. Setting your energy saver settings so it doesn't sleep.
    But over time, even those strategies will fail to help.
    secondly, if i send it in to get serviced, how long
    might it take (it has to ship from new england if
    that means anything)?
    I took mine to the Apple Store last Wednesday and it was overnighted to the repair center. It was delivered back to me the this Wednesday. So it took one week in my case. I know there are folks that sent theirs in before I did that had to wait longer, but I think that's because there was a parts shortage.
    has anyone got theres serviced recently and still had
    problems?
    The first time I sent mine in it worked fine for three weeks and then the RSD returned, but that was because Apple really didn't know at the time what the problem was. By the time I sent it in the second time, they had just concluded that a heatsink replacement would fix the problem. Hopefully they were right - only time will tell, since the issue generally seems to take a few weeks or more to occur.
    Also will the RSD get worse, should i send it in
    sooner rather than later (right now i can deal with
    it, though if it does get worse itd be a pain)
    It will get worse over time. If it only happens rarely, they might not be able to replicate the problem if you take it in for service right away. (The first time I took it to the Apple Store they couldn't get it to shut down. By the time I took it in the second time, it was predictable enough that I knew it would shut done right after they turned it on - then they sent it in for service.) If it happens fairly regularly (like every time you start it after its been sitting for awhile, or any time you wake it from sleep), then definitely take it in. Supposedly they really do know how to fix it now.
    and last should i expect to lose everything on the
    harddrive ifg i send it in?
    Both times that I got mine back all of my data was intact. However, it is always good practice to do a full backup before you send it in -- just in case.

  • Where to direct a general questions about foreign films subtitles?

    I recently purchased a foreign film "Break Ke Badd" from the iTunes store. Although, it didn't specify that it had English subtitles, I assumed it did. After the full download, I tried to watch it and there weren't any English subs. I contacted iTunes and they more than happy to refund the money back to my account. Now after a few weeks, the iTunes store DOES list Eng subs for this film. I don't want to purchase it again and have to contact iTunes for another refund...Therefore my question is, is there a general question contact one could use to find an answer to my question. Basically, to verify that this movie, indeed has English subs before I re-purchase. 
    Any info is appreciated!

    Yes I know as the [https://support.mozilla.org/en-US/questions/ Questions] section is more for desktop Firefox support and the place I linked to is for "Firefox OS" support in English where some who are involved with it do post in it occasionally.
    I would have moved that [https://support.mozilla.org/en-US/questions/962783 thread] to the "Firefox OS" English section, however I cannot as the [https://support.mozilla.org//questions/ Questions] and [https://support.mozilla.org/forums Contributor Forums] are not the same.

  • General Questions about BI

    Hello,
    I want to get into SAP BI and have some questions about it.
    Is there a big downside in installing only the BI components without the Java BI components, or is it even possible if you want to work with BI. What are the general differences between BI and Java BI?
    I think the main aspects i will work with will be data warehousing and some basic reporting.
    The reason why i'm asking is that i want to run the BI components in the same system as the ECC Server (its just a test system). I read that the Java BI component needs EPC and EP and that would probably be too much for a single system (6 GB RAM).
    Thanks a lot in advance,
    Martin

    Thanks for your hints, they were really helpful.
    As i mentioned i mainly want to work with the general Data Warehouse and Reporting capabilities, so i think it should be okay.
    Actually i'm planing to write about BI and SAP within my master thesis.
    Another question, what will be with SAP BI in the future regarding the Business Object acquisition? Is there still any point in learning SAP BI or will SAP BI disapear in the future? I heard that the basic BI functionality (e.g. Datawarehouse ) will still be used but the reporting capabilities  would be disappear. I'm not sure if that is right and i'm really new to this topic. So any comments are welcome.
    Thanks,
    Martin

  • Few common questions about Mobile Forms

    Hello, everyone!
    I have a few questions about mobile forms:
    Can a form be integrated with a portal, which is build NOT on Adobe CQ\AEM technology?
    I've created a form and loaded it to the server repository via Form Manager. Now I can access it in my browser like this:
    http://testlcserver:8080/lc/content/xfaforms/profiles/hrform.html?contentRoot=repository%3 A%2F%2F%2FApplications%2FTest%2F1.0&template=UberForm.xdp&dataRef=
    And the question is: what is the right way to share forms to users on a production environment (without integration in a portal pages on so on, let it be just a link to a form which users have to fill in)?  I mean, should it be the same link, or it is only for developers need and to share forms to users some other way must be used?

    For integrating on custom portal, you would need to integrate with form submit proxy for handling of submission as mentioned @ http://helpx.adobe.com/livecycle/help/mobile-forms/mobile-forms-service-proxy.html.
    As far as url of form is concerned, it’s really up you. You can choose to hide the request parameters as couple of other customers are doing. You can find more information about hiding form template and content root from request parameter @ http://blogs.adobe.com/foxes/hide-parameters-from-mobile-form-url/

  • Asking general questions about 'computing' matters.

    Hello
    I'm new to the Mac world - I posted my first question on the forums today!
    I have reviewed the discussions site - everything seems very specific to apple products. Where, if anywhere, could I post a general question - like this one:-
    I have a notion that when one connects to a server directly (Usenet newsgroups for example) one makes a deliberate 'hole' in one's firewall, be it software or simply because one is using a NAT router. Sending messages to and receiving posts from Usenet is far quicker than using email, so I'm fairly confident that this is so.
    I am well aware that any URL one visits can instantly determine much information about the connecting machine. (see http://www.browserreport.com/ as an example).
    Anti-malware programs can only detect known viruses and spyware - I see no reason at all why, once one has granted a direct connection facility, between a group on a private server to
    one's own machine, malware could not relatively simply be injected onto one's computer.
    If the malware was currently unknown, how would one ever know?
    Thanks in anticipation of a helpful response
    David B

    HunterBD wrote:
    I'm new to the Mac world - I posted my first question on the forums today!
    Excellent!
    I have reviewed the discussions site - everything seems very specific to apple products. Where, if anywhere, could I post a general question - like this one:-
    Unfortunately, not in this forum. This forum is specifically about the discussion forum itself. It is kind of like a meta-forum. Hopefully, the moderators will just move your post somewhere more appropriate. (As indeed they just did!)
    I have a notion that when one connects to a server directly (Usenet newsgroups for example) one makes a deliberate 'hole' in one's firewall, be it software or simply because one is using a NAT router.
    Kind of and kind of not. Firewalls are greatly misunderstood. But essentially, yes, any internet connection you establish has some risk involved. However, the risk of making an outgoing connection is infinitesimally smaller than setting up a server to let hackers bang on 24x7.
    Sending messages to and receiving posts from Usenet is far quicker than using email, so I'm fairly confident that this is so.
    Really? I don't think so.
    I am well aware that any URL one visits can instantly determine much information about the connecting machine. (see http://www.browserreport.com/ as an example).
    Not really. It depends on what you are doing. You always give away your IP address, unless you are behind a proxy. In that case, you give away the proxy's IP address. But the proxy still knows who you really are.
    If the protocol in question supports such information, then it can be determined. A web browser does send some information about you, but you can easily change it and masquerade as some other browser. With other protocols, it isn't so easy to tell what kind of OS or software is being used.
    Anti-malware programs can only detect known viruses and spyware - I see no reason at all why, once one has granted a direct connection facility, between a group on a private server to
    one's own machine, malware could not relatively simply be injected onto one's computer.
    If the malware was currently unknown, how would one ever know?
    You wouldn't
    Don't grant anyone direct connection to your machine.

  • General question about Mountain Lion

    I've kept clear of Lion on both my MACS because of all the "bad press" it got, I'm still running Snow Leopard on my MACS and I've never had a day of problems with either. Also I run Logic Studios on both my MACS and didn't want to chance having issues with interface compatability, lack of drivers and such. My question is kind of simple and for better or worse comes down to opinion, what is the general feeling about Mountain Lion? Is it a big improvement over Lion? Is it more stable with less bugs? Any issues running Logic? I'm "playing with the idea" of upgrading but I want to do my research first. If Mountain Lion is not a big improvement over Lion or if people are having issues with running Logic I'm going to stick with SL.
    Thanks for your opinions in advance.

    Be cautious about listening too much to replies you're likely to get. These sort of questions in a place like this are like magnets to people who are having problems and want to complain about it. You're likely to hear some horror stories that don't represent the majority of cases.
    ML has been excellent so far for me, faster than Lion and no serious bugs I've discovered so far. But if you upgrade, be sure to do your homework: backup, check compatibility of all your software (including things like printer drivers) and repair the hard drive with Disk Utility before installing.

  • Round trip workflow with proxies between Premiere and AE / a more general question about how these programs work?

    Hi all,
    I'm new to editing with proxies in Premiere and have some questions about how to handle the relationship with After Effects. Say I have a rough cut (with proxies) and I want to send it to AE to do some effects. The simplest thing to do seems to be to replace the proxies with the originals in Premiere, send the project to AE and do my thing. But if I then want to send the project back to Premiere, it will involve the original files, which are too machine-intensive for me to edit. In theory, it seems like there should be a way to send the project with original footage to AE, do effects, send it back to Premiere, and then replace it with proxies to do further editing while retaining the effects.
    This leads to a confusion about how AE works. When I do an effect, am I correct in assuming that it does nothing to the original file? If that's the case, it seems like it shouldn't matter (in the editing stage) what file AE "applies" an effect to (proxy or original). But I feel like there's a hitch in this workflow. The same question could also be asked about going back and forth in Speed Grade.
    Perhaps there is no real answer to this and the best option is to save effects and grading for after I have picture lock, but sometimes that's not entirely possible or convenient, etc.
    Hopefully this makes some sense—It's a little hard to explain.
    Thanks.

    Hi Mark,
    Here are the specific sections of the manual that should give you the best explanation regarding the Check out/in workflow for FCP projects in Final Cut Server:
    Check out:
    http://documentation.apple.com/en/finalcutserver/usermanual/#chapter=7%26section =5
    Editing:
    http://documentation.apple.com/en/finalcutserver/usermanual/#chapter=7%26section =6
    Check in:
    http://documentation.apple.com/en/finalcutserver/usermanual/#chapter=7%26section =7
    -Daniel

  • I have a handful of general questions about Firefox OS as a consumer..

    I couldn't find a better place to post this, so I'm trying on here.
    I'm in the market for a tablet (high-end), and I'm holding off on getting an Android-powered one because of Firefox OS. However, I have some general questions and concerns regarding performance, software and hardware. Here they are.
    1. Is the Firefox OS interface as responsive as a native experience on say an iPad or an Android tablet? (Is there any lag on swipes between screens, button presses, etc?) If not, will it be in the future?
    2. Will I miss the Android marketplace or the Apple app store, being restricted to only HTML5 apps? Do you think this will become an irrelevant question as the HTML5 app ecosystem grows?
    3. Do you think the quality of HTML5 apps will be inferior to those from existing app stores because they are free?
    4. Will the Firefox browser be the only one available in Firefox OS? (i.e. will there be the option to use Chrome, Opera or any other browser if the user so wishes?)
    5. Will Firefox OS include useful utility apps, such as an alarm clock, a calendar, a weather app, etc?
    6. I read a lot, both on the web (news, video game reviews), as well as ebooks. Will Firefox OS on a tablet be a pleasant experience conducive to e-reading? (Will it include a good ebook reader app?)
    7. Will there be a high-end Firefox OS tablet that is comparable in specs to the Nexus 10? (i.e. impressive screen resolution, powerful CPU/GPU, lots of inputs/outputs like USB, HDMI, microSD, etc) When do you think such a device might become available?
    8. Would it be possible to flash Firefox OS onto say a Nexus 10 or other tablet or phone if one wanted to use it as their OS instead?
    Thanks!

    1. Depends on the phone but a avererage power android phone would likely cost the same as a high end firefox os phone.
    2. HTML 5 is really the future of the web, I've heard that Firefox will let you package apps to be playable offline, but not sure if thats true.
    3. I '''think''' Firefox OS may have paid apps that will be restricted to users who buy them.
    4. I think Mozilla will be nice enough to let Google and Opera make browsers. Google let Mozilla do that with FF for android.
    5. See the simulator https://addons.mozilla.org/en-us/firefox/addon/firefox-os-simulator/
    6. too early to say
    7. too early to say, but Foxconn (helps apple) makes some apple products, so yes in the future is see a high end Firefox OS tablet 2-3 years down the road.
    8. not sure
    NOTE: Please note that we are only contributors, we dont develop firefox os.
    You can ask more on the IRC channel as there are likely devs there.
    https://client00.chat.mibbit.com/?server=irc.mozilla.org

Maybe you are looking for

  • Acrobat 9 in 64 Bit Windows 7

    I've run into a problem I can't quite figure out how to resolve for a client, Sometimes when I open a .pdf file in IE 8 on a windows 7 machine I receive a blank error message with a blue question mark in it with absolutely no text. At first I thought

  • How long must we wait for an update!

    Not long: http://www.adobe.com/products/flash.html

  • Non supported character set: oracle-character-set-46??? - pls help!

    Hello, I'm running Hello World example. Could you please help me to resolve "Non supported character set: oracle-character-set-46" error i got?!?! This seems to be nls_character problem but somehow i can't figure out what and where should be changed

  • Toggle for commentary track

    I have a special features menu on my dvd, with on and off buttons for the commentary track. Right now, when you select one of them, the video track begins playing, from the beginning, with the correct audio stream selected. So it works. But on most n

  • Controls in skin of dynamically loaded FLVPlayback component don't work

    can be viewed here: http://jimslounge.com/publicDomain/captainVideo/ my code:         public function WebSite() {             this.stage.frameRate=60;             com = new FLVPlayback();             addChild(com);             com.skin="SkinOverPlayS