Can't work FlowLayout with a JPanel, but can with contentPane...

Hi,
I usually use setBounds to layout my components but I am trying FlowLayout and GridLayout this time. I tried FlowLayout and got it to work when not using a JPanel. But when I try adding the JTextField to a JPanel like in the code below, the JTextField doesn't appear and only the yellow background appears. I don't know why. Thanks for your help.
       Container contentPane = getContentPane();
       contentPane.setBackground( Color.YELLOW );
       registerJPanel = new JPanel();
       registerJPanel.setLayout(new FlowLayout());
       usernameloginJTextField = new JTextField("hi");
       registerJPanel.add(usernameloginJTextField);
       setTitle( "Application");
       setSize( 400,400);
       setVisible( true );

know how i can put each new component on a new line?
registerJPanel.setLayout(new GridLayout(0,1));

Similar Messages

  • HT1296 i just downloaded the latest version of itunes but now i cant zync my ipod. i tunes does not detect my ipod. ut just to work perfectly with the older version of itunes but not now. what is something i can do?

    i just downloaded the latest version of itunes but i cant zync my iphone nor my ipod. it just to work perfectly with the older version of itunes  but now itunes does not detect my ipod nor iphone. i have a windows pd and iwindows detects the iphone and ipod. what is something i can do to fix the problem??

    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or               
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Featurs appin the Window Control Panel. Then reinstall all the Apple software components
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests

  • I have the latest edition of the Flash player and it works fine with IE but Firefox keeps telling me I can play things because I dont have it

    Since I updated Firefox I cant play anything that requires Flash player. I have the up to date player and it works perfectly with IE but Firefox keeps telling me I need another plug in and when I follow the instructions it says 'download failed try manual download' but even that fails too.
    Before I updated Firefox I had no issues, can you help
    Alan.

    There are 2 versions of Adobe Flash:
    *an '''ActiveX version''' for IE only
    *a '''Plugin version''' for most other browsers including Firefox
    *On a Windows system, you should always update both individually.
    '''''You do not appear to have the Plugin version for Firefox installed. ''''' If you did, in Add-ons > Plugins you would see "Shockwave Flash ''(version)''". If "Shockwave Flash" is there and is disabled, click the "Enable" button.
    Check your Plugins often --> http://www.mozilla.org/en-US/plugincheck/
    *only the most popular/used Plugins are known by this page
    *page will detect only installed, '''''enabled''''' Plugins
    '''<u>Install or update Adobe Flash</u>'''<br />
    #'''<u>Using Firefox</u>''', go to the following link and SAVE the download to your desktop so you can find it later. Un-check any items on that page that you do not want to download (i.e., "McAfee Security Scan Plus":
    #*http://get.adobe.com/flashplayer
    #When the download is finished, close Firefox (File > Exit '''''OR''''' Firefox button > Exit)
    #Click or double-click on the file you just saved to your desktop
    #*In the installation window that appears, click the box to the left of "I have read and...." to place a check mark in the box
    #*The "Install" button in the lower right corner will now be highlighted, click it.
    #*The installation is quick.
    #Start Firefox and test your installation here: https://www.adobe.com/software/flash/about/
    #To update/install the ActiveX version for IE '''''only''''', repeat the process, '''<u>but use IE to go to the above website</u>'''.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • When I try to play youtube video I get the message of blocked plug-in, and I can not play video using Safari. (Youtube works fine with google chrome) I tried installing flash player HTML5 etc... but still no difference.

    I just installed OSX Mountian Lion, and ever since then I can not play youtube video's. I get the message of 'Blocked Plug-in' in the youtube screen. I have tried installing Adobe Flash Player. HTML 5, also tried enabling/disabling java, but nothing worked out. Is there any way I can play youtbe vieos on Safar. (It works fine with Google Chrmoe, only safari has problem)

    If you have the ClickToFlash extension installed, that can prevent Flash based video from streaming. Safari > Preferences > Extensions
    It can also be installed as a plugin in /Library/Internet-Plug-Ins.
    Try uninstalling the currently installled Flash plugin (required for most YouTube content) then reinstall new >  Troubleshoot Flash Player | Mac OS
    From your Safari menu bar top of your screen click Safari > Preferences then select the Advanced tab.
    Select:  Show Develop menu in menu bar
    Now from the menu bar click Develop > Empty Caches

  • Why I can't open google maps on Safari? Everything have been working normally with my computer. But this problem with google maps I can't fix

    Why I can't open google maps on Safari? Everything have been working normally with my computer. But this problem with google maps I can't fix

    Do you have an example? I develop Google maps for Web pages and haven't had problem with Safari and its extensions, only FF which I took out all the addons and plug-ins, but it wouldn't surprise if the Google map code doesn't display the map or information for the map or doesn't work with newer versions of Safari.

  • Hi, I have a Catalyst 6500 with X6K-SUP2-2ge, the IOS and bootlader image been wiped out, it starts in ROMmon SP mod end can't switch to RP to start download the IOS using Xmodem, though it shouldn't work in ROMmon SP omde but the xmodem is not gving the

    Hi, I have a Catalyst 6500 with X6K-SUP2-2ge, the IOS and bootlader image been wiped out, it starts in ROMmon SP modw and I can't switch to RP to start download the IOS using Xmodem, though Xmodem shouldn't work in ROMmon SP mode but the it's not gving the
    not executable message, the slot0: and disk0: are not accessable can't see the files inside, when I try the dir slot0: or dir disk0: it says it can't be opened and when I try to boot from them there's noting as well, what can I do to load an IOS image to the booflash: or slot0: ,each time I load the image using Xmodem at the end it gives me *** System received a Software forced crash ***
    signal=0x17, code=0x5, context=0x0
    When I run the command:
    rommom1> boot bootflash:
    boot: cannot determine first file name on deice "bootflash:"
    rommon2> boot slot0:
    boot: cannot open "slot0:"
    boot: cannot dtermine first file name on device "slot0:"
    BTW  System Bootstrap, version 7.1
    I''m looking to format the PCMCIA using a PC and format it to FAT16 and copy the boot image into it and then try to load from the PCMCIA afterward if it works I'll format it using the Supervisor engine 2.
    Any one have another new idea I can use, thanks in advance

    This is a potentially complex issue.
    Is this SUP configured to run as IOS native or CatOS Hybrid?
    While in ROMMON can you do the 'dev' command and see whad drives are recognized. Then 'dir' the drives that the SUP recognizes.
    Can you provide the screen captures as it boots?
    You would be bette served by hacing a TAC case.

  • I can't install Java in Firefox. Intead Java works fine with IE. I preffer Firefox 4 but...I'm running Win 7 64-bit.

    I;m running win7 64-bit and I can;t install Java in Firefox 4. Java works fine with IE.

    On Java, I think we've covered the basics. There are a couple of other articles that might help:
    [http://support.mozilla.com/en-US/kb/Java-related%20issues Java-related issues | Troubleshooting | Firefox Help]
    [http://kb.mozillazine.org/Plugin_scanning Plugin scanning - MozillaZine Knowledge Base] (you would want to make sure it is ''not'' disabled; in about:config, filter on plugin.scan and see whether anything has been changed from its default)
    On Norton, there are a number of recent threads here, but I have not been reading them. Hopefully someone has posted the answer.

  • I have an apogee ensemble that I am using with Logic that was working fine 2 days ago but now it is seeing the apogee but giving me a conflict era and I can't get sound through my mixing board. What could be causing it, I haven't changed any settings

    I have an apogee ensemble that I am using with Logic that was working fine 2 days ago but now it is seeing the apogee but giving me a conflict era and I can't get sound through my mixing board. What could be causing it, I haven't changed any settings

    OK, but in my ipad, the apple id i have in itues is already the one  iwant to have, but th one i used to sin in for i-coud is the other one. Any tip as to how to change the apple id for icloud and any idea how to know what apps i bought with the other apple id so as to delete them from my ipad to avoid being asked to enter another apple id every time they get updated? thanks!

  • I can't get volume on Main Output to work correctly with controllers on my keyboard. It's either all on or all off. Works fine for individual instruments (thought it lumps them all together) but not for main volume output on concert. Thanks for any help.

    I can't get volume on Main Output to work correctly with controllers on my keyboard. It's either all on or all off. Works fine for individual instruments (thought it lumps them all together) but not for main volume output on concert. Thanks for any help.

    Hi
    frodojon wrote:
    I either didn't do the correct mapping sequence before or I'm starting to wonder if it has something to do with my keyboard which has the expression pedal set to the same volume control as the mod wheel.
    All this sounds like you are confused about the general nature of MIDI Continuous Controllers (MIDI CC). The MIDI specification allows for 128 different CC's: CC0 to CC127. Some are typically "preallocated" to 'standard functions: CC1= Modulation, CC7=Volume, CC10+Pan, CC11= 'Expression'. Some act as switches such as 'Sustain' CC64.
    frodojon wrote:
    Everything appears to be scaled from -63 to +64 if that's what you mean by scaling?  What do you mean by MIDI CC7?
    Mainstage works with MIDI CC's generally in a number of ways:
    Some standard ones are automatically passed through to all MIDI/Instrument channels unless you specifically block them. Others are not passed through unless you specifically map them to something.
    This mapping can be done basically two ways (with MS 2.2):
    a) Make a Screen Control in Layout mode, and assign it to a particular incoming MIDI CC message. Then, you can map this Screeen Control to a variety of parameters such as the volume of a particular channel strip.
    b) With MS 2.2, you can do the above Assign and Mapping directly, without the need for Screen Controls as an 'intermediary'.
    frodojon wrote:
    something to do with my keyboard which has the expression pedal set to the same volume control as the mod wheel.  I
    Yes.
    It sounds to me like you have an issue where you have several hardware controls on your Keyboard set up to transmit the same MIDI CC. This is probably not a good idea, and it would be much better if you assigned them to transmit different CC messages (CC1 for Modulation and probably CC11 for the Expression (though you may want to set the pedal to some other number instead.
    Once you are transmitting different CC messages, you will be able to Assign and Map much more flexibly:
    for example, you could one to control the overall output volume at Concert Level in MS, whilst the other controls the volume of a specific channel within a Patch.
    Your issue of layered patches is one of "Scaling": one Screen Control (assigned to an incoming MIDI CC message) needs to alter the ranges of different channel strips to different amounts. You can set this up by using multiple mappings for one Control, each set to work over a particular range (for example a goes from -20 to 0 whilst b goes from -30 to -20 etc.).
    hth
    CCT

  • JRE7 throws exception Can't create cache file but work fine with JRE6

    I am using J-free chart for rendering charts. My application is work fine with JRE6 but while using JRE7 i am getting following exception
    Caused by: javax.imageio.IIOException: Can't create cache file!
         at javax.imageio.ImageIO.createImageOutputStream(Unknown Source)
         ... 18 more
    Caused by: java.io.IOException: The system cannot find the path specified
         at java.io.WinNTFileSystem.createFileExclusively(Native Method)
         at java.io.File.createTempFile(Unknown Source)
         at javax.imageio.stream.FileCacheImageOutputStream.<init>(Unknown Source)
         at com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInstance(Unknown Source)
         ... 19 more

    I was not able to reproduce this with Java 7u3 (32bit) on a Windows 7 (32bit).
    What specific version of Java were you using at the time of error?
    - ShakR

  • I have an HP Photosmart Premium C410. It worked great with Mountain Lion, but it doesn't with Mavericks. Can't install any printing s/w even though it's on the network. Anyone know why????

    i have an HP Photosmart Premium C410. It worked great with Mountain Lion, but it doesn't with Mavericks. Can't install any printing s/w even though it's on the network. Anyone know why????

    So, this post, as well written as it is, went totally ignored by the HP personnel that are supposedto be "helping" us poor novices? WOW! No wonder this crap gets thrown out of the house so often.
    I have two HP network printers. An HP Officejet 4500 G510g-m, and a HP Photosmart Premium C410a, and they are the most unreliable pieces of "equipment" that I have in my network. This is absolutely trhe crappiest bunch of junk on the market. The only thing worse than these "devices" is the support from HP for them.
    I also have a HP Photosmart C5280 AIO, and a Deskjet D2345 Printer. I have little, to no, problems with these two. The "flagships" of my network imaging are the worst, of the worst.

  • Recently, I can't get any sound from my game applications.  Sound works fine with video, streaming, etc, but not my game applications.  I've tried powering down and re-booting, but the sound does not return.  Can anyone help me?

    Recently, I can't get any sound from my game applications.  Sound works fine with video, streaming, etc, but not my game applications.  I've tried powering down and re-booting, but the sound does not return.  Can anyone help me?

    Have you got notifications muted ? Only notifications (including games) get muted, so the Music and Videos apps, and headphones, still get sound.
    Depending on what you've got Settings > General > Use Side Switch To set to (mute or rotation lock), then you can mute notifications by the switch on the right hand side of the iPad above the volume switch, or via control centre : swipe up from the bottom edge of the screen and it's the right-most of the 5 icons in the middle of it (if the icon is white then it's 'on', tap it to turn it grey and 'off'). The function that isn't on the side switch is set via control centre instead : http://support.apple.com/kb/HT4085

  • Please help. just got my jabra halo, worked fine with my iphone4 but can't use it on my macbook pro. it always prompts " the devise does not have the necessary service

    please help. just got my jabra halo, worked fine with my iphone4 but can't use it on my macbook pro. it always prompts " the devise does not have the necessary service

    Found these instructions here:
    https://discussions.apple.com/message/15388885#15388885
    I found an answer that worked for me. I am using an iMac.
    (1) Sign out of the iTunes store
    (2) Open a NEW account with a new Apple ID
    (3) Go through the sign up process and then go to the ACCOUNT INFORMATION page
    (4) Go to RECOMENDATIONS & PING POSTING
    (5) Turn on Genius there
    Once the Genius updates, you can sign out and then sign in under your original Apple ID or the e-mail address you use for the iTunes store. All my store credit was there and now Genius worked.
    Rather odd but I actually like the Genius at times except when it can't deal with some of my lesser known bands that I listen to.
    Worked for me.

  • I WAS USING I PHONE4 AND MY CAR KIT WAS WORKING PERFECT WITH IT VIA BLUETOOTH(RENAULT GRAND SCENIC 2011) BUT I BOUGHT THE NEW 4S AND EVENTHOUGH I CAN BE CONNECTED TO MY CAR KIT BY BLUETOOTH I CAN NOT HEAR IT ON MY CAR STREO.CAN ANYBODY HELP ME

    I WAS USING I PHONE4 AND MY CAR KIT WAS WORKING PERFECT WITH IT VIA BLUETOOTH(RENAULT GRAND SCENIC 2011) BUT I BOUGHT THE NEW 4S AND EVENTHOUGH I CAN BE CONNECTED TO MY CAR KIT BY BLUETOOTH I CAN NOT HEAR IT ON MY CAR STREO.CAN ANYBODY HELP ME

    Please stop posting in ALL UPPER CASE; it is considered SHOUTING, is harder to read, and is considered rude.
    If you have not yet done so unpair the car kit from the phone, or better yet reset it completely, Forget the car kit in the iPhone, and pair it anew.

  • Hi i got a mac mini but when i connect it to my smartax mt882 modem via ethernet it says device not connected can anyone solve this issue it work fine with the usb connection but the ethernet is giving me problems plz help

    hi i got a mac mini but when i connect it to my smartax mt882 modem via ethernet it says device not connected can anyone solve this issue it work fine with the usb connection but the ethernet is giving me problems plz help

    Hello, give this a try...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.5, 10.6, 10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x/10.8.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    For 10.5/10.6/10.7/10.8, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    (There may be better or faster DNS numbers in your area, but these should be a good test).
    Click OK.

Maybe you are looking for

  • Line Layout with Reference Key in F-03

    Dear all, Iu2019m facing the following problem. I modified the line layouts for F-03 through O7Z4S. In particular I created a line layouts with the field Reference key 1. The problem is that in F-03, using this variant, the field XREF1 appeared alway

  • Viewing other content via Apple TV

    I'm considering buying apple tv as it seems like a great product and I like the idea of its functionality. However, would it also allow me to stream other content from my computer such as Major League Baseball On line broadcasts? Appreaciate any help

  • IDVD 5 not working - because of older version?

    Hello. I have recently purchased a new iMac, with Tiger and (I assume) iLife programs pre-installed. I am having trouble opening iDVD 5 - perhaps because I forgot to deselect iDVD 2 when I transferred my files from my old Mac. iDVD 2 is still on my h

  • How can I get rid of the the thing below my bookmark list?

    Below my bookmarks list there is blank space that just says the website I'm on. For example if i go to google.com it will say Google on above my toolbar and below my bookmarks list. Not to sure how to explain it but if I open multiple tabs on my wind

  • Formula variable to add three char. date value together?

    We've been struggling to use formula variable (Replacement Path), but never been sucessful! We have three row date type of char which are c1, c2, and c3.  Now users would like to see a summation of the three date char.  We believe we will have to use