How to make grid without text etc., expand upon load of app?

hello,
i did this,
JPanel panInner = new JPanel();
panInner.setLayout(new GridLayout(5, 5, 10, 10));
then after that, i add 25 labels on each without any text.., the grid looks very small and will enlarge upon entering text.., i don't want that to happen, i want the grid boxes to have a constant size all through out regardless of the text's length.
also, how do i have a 'fixed size', seems all the component's size fitting to the size of the texts.,
many thanks! :)

Submit your feedback directly to Apple using the appropriate link on the Feedback page:
http://www.apple.com/feedback

Similar Messages

  • Is there any how to make control without xaml ?

    Is there any how to make control without
    Generic.xaml ?
    When we use templete control , Normally we made a custom control using  geniri.xaml  to make make up control templet.
    without Generic.xaml  is it possiable to make up   control templet  that contained many component like a button stackpannel.
    this is my sample code
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Runtime.InteropServices.WindowsRuntime;
    using Windows.UI;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Documents;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    namespace derrick_test
    public class DerrickPanel : Control
    private StackPanel parentPanel;
    private TextBlock testBlock;
    public DerrickPanel()
    this.DefaultStyleKey = typeof(DerrickPanel);
    parentPanel = new StackPanel();
    testBlock = new TextBlock();
    parentPanel.Orientation = Orientation.Vertical;
    parentPanel.Background = new SolidColorBrush(Colors.Red);
    testBlock.Foreground = new SolidColorBrush(Colors.Aqua);
    testBlock.Text = " hello World ";
    parentPanel.Children.Add(testBlock);
      Best Regrads Derrick.

    Here's one solution that I found:
    public sealed partial class MainPage : Page
    public MainPage()
    this.InitializeComponent();
    protected override void OnNavigatedTo(NavigationEventArgs e)
    DerrickPanel D = new DerrickPanel();
    MyGrid.Children.Add(D);
    public class DerrickPanel : Control
    private StackPanel parentPanel;
    private TextBlock testBlock;
    public DerrickPanel()
    this.DefaultStyleKey = typeof(DerrickPanel);
    this.Template = DerrickPanel.CreateTemplate();
    private static ControlTemplate CreateTemplate()
    string xaml = "<ControlTemplate xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\">";
    xaml += "<StackPanel Orientation=\"Vertical\" Background=\"Red\">";
    xaml += "<TextBlock Foreground=\"Aqua\">Hello World</TextBlock>";
    xaml += "</StackPanel>";
    xaml += "</ControlTemplate>";
    var сt = (ControlTemplate)XamlReader.Load(xaml);
    return сt;
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • How to make a PDF form with expanding tabel or expanding fields, like in Word.

    How to make a PDF form with expanding tabel or expanding fields, like in Word.

    This is currently not possible in Formscentral. It is something we are working on for the future. Please stay tuned.
    Andrew Yarborough

  • How to make separate/individual text frame from one parent frame in indesign with javascript

    Hi all,
    Please suugest - how to make separate/individual text frame from one parent frame in indesign with javascript.
    Thanks
    Rohit

    @Larry – ah, your interpretation could be the right one…
    May I rephrase the question:
    "How to split threaded text frames to single ones?"
    "SplitStory.jsx" or "BreakFrame.jsx" under Scripts/Samples indeed could be the answer.
    From the comments in the code of "BreakFrame.jsx":
    //Removes the selected text frame (or text frames) from the
    //story containing the text frame and removes the text contained
    //by the text frame from the story.
    //If you want to split *all* of the text fames in the story, use the
    //SplitStory.jsx script.
    Uwe

  • How to make a dynamic text  be SMS by fl2.1

    Now ,I know use " getURL("sms:"+telnumber) "to send sms to a
    specified no.,but how to make a dynamic text be the sms content.?
    Many thx!:

    Ciao,
    this should work:
    smstxt = "ciao, happy holidays";
    telnum = "1234567890";
    getURL("sms:"+telnum+"?body="+smstext);
    body is a keyword.
    Alessandro

  • How to make Dynamically Shortened Text With "Show More"

    Hi there! i want to know how to make dynamically shortened text with show more or read more in my website using HTML 5 pages  or ASP.NET ?
    example like these paragraphs 
    Lorem Ipsum är en utfyllnadstext från tryck- och förlagsindustrin. Lorem ipsum har varit standard ända sedan 1500-talet, när en okänd boksättare tog att antal bokstäver och blandade dem för att göra ett provexemplar av en bok. Lorem ipsum har inte bara överlevt fem århundraden, utan även övergången till elektronisk typografi utan större förändringar. Det blev allmänt känt på 1960-talet i samband med lanseringen av Letraset-ark med avsnitt av Lorem Ipsum, och senare med mjukvaror som Aldus PageMaker.
    Det är ett välkänt faktum att läsare distraheras av läsbar text på en sida när man skall studera layouten. Poängen med Lorem Ipsum är att det ger ett normalt ordflöde, till skillnad från "Text här, Text här", och ger intryck av att vara läsbar text. Många publiseringprogram och webbutvecklare använder Lorem Ipsum som test-text, och en sökning efter "Lorem Ipsum" avslöjar många webbsidor under uteckling. Olika versioner har dykt upp under åren, ibland av olyckshändelse, ibland med flit (mer eller mindre humoristiska).
    I motsättning till vad många tror, är inte Lorem Ipsum slumvisa ord. Det har sina rötter i ett stycke klassiskt litteratur på latin från 45 år före år 0, och är alltså över 2000 år gammalt. Richard McClintock, en professor i latin på Hampden-Sydney College i Virginia, översatte ett av de mer ovanliga orden, consectetur, från ett stycke Lorem Ipsum och fann dess ursprung genom att studera användningen av dessa ord i klassisk litteratur. Lorem Ipsum kommer från styckena 1.10.32 och 1.10.33 av "de Finibus Bonorum et Malorum" (Ytterligheterna av ont och gott) av Cicero, skriven 45 före år 0. Boken är en avhandling i teorier om etik, och var väldigt populär under renäsanssen. Den inledande meningen i Lorem Ipsum, "Lorem Ipsum dolor sit amet...", kommer från stycke 1.10.32.
    Den ursprungliga Lorem Ipsum-texten från 1500-talet är återgiven nedan för de intresserade. Styckena 1.10.32 och 1.10.33 från "de Finibus Bonorum et Malorum" av Cicero hittar du också i deras originala form, åtföljda av de engelska översättningarna av H. Rackham från 1914.

    Moved to the main Dreamweaver support forum.
    There are several ways you could approach this. Here's one you might try:
    Give the first paragraph an ID, such as "first", and wrap the paragraphs you want to hide in a <div> with another ID, such as "more". Then add the following block of JavaScript just before the closing </body> tag of the page:
    <script>
    var first = document.getElementById('first'),
         more = document.getElementById('more'),
         trigger = document.createElement('span');
    trigger.id = 'trigger';
    trigger.innerHTML = 'Show less';
    first.appendChild(trigger);
    function toggleDiv() {
      var state = more.className,
           text = trigger.innerHTML;
      more.className = (state == 'open') ? 'closed' : 'open';
      trigger.innerHTML = (text == 'Show more') ? 'Show less' : 'Show more';
    toggleDiv();
    if (trigger.addEventListener) {
        trigger.addEventListener('click', toggleDiv, false);
    } else if (trigger.attachEvent) {
      trigger.attachEvent('onclick', toggleDiv);
    } else {
      trigger.onclick = toggleDiv;
    </script>
    This gets references to the "first" paragraph and the "more" <div>. It also creates a <span> with the ID "trigger" that's appended to the "first" paragraph. The rest of the script defines a function called toggleDiv(), which toggles the "more" <div> open and closed, and changes the text in the "trigger" <span>.
    You also need to create the following style rules for the various elements:
    <style>
    #trigger {
        text-decoration: underline;
        color: blue;
        cursor: pointer;
    #more {
        transition: ease-out .7s;
        overflow: hidden;
    #more p:first-child {
        margin-top: 0;
    #more.closed {
        height: 0;
        -webkit-transform: translateY(-600px);
        transform: translateY(-600px);
    #more.open {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        max-height: 600px;
    #more + p {
        margin-top: 0;
    </style>
    This solution hides the text and creates the "trigger" <span> only if JavaScript is enabled in the browser. It should work in all browsers, including Internet Explorer 8 and earlier.

  • I had iPhoto as part of iLife 11. I recently did an erase and install on my Macbook Air and without a CD drive I'm unable to reinstall. How can I install without having to repurchase all of the apps?

    I had iPhoto as part of iLife 11. I recently did an erase and install on my Macbook Air and without a CD drive I'm unable to reinstall. How can I install without having to repurchase all of the apps?

    Do you have access to another Mac with a disk drive?  If so you can do it in one of two ways:
    1 - on the Mac with the optical drive launch Disk Utility and make a disk image of the iLife 11 disk. Connect the two Macs together and transfer the disk image to your MacBook Air.  Mount the disk image and install from it.  I have my iLife disks saved that way for quick and easy reinstall when necessary.
    2 - connect the two Mac together so you can access the MBA from the Mac with the disk drive. Insert the iLife disk, and install from the second Mac to the MBA.

  • I synced my new iPad with my new macbook and when I tried to then sync my iPhone as well it says that all apps will be replaced with apps in my library. How do I sync without losing all of my existing iPhone apps?

    I synced my new iPad with my new macbook and when I tried to then sync my iPhone as well it says that all apps will be replaced with apps in my library. How do I sync without losing all of my existing iPhone apps?

    My guess is that you previously synced the iPhone with a different computer in the past. You will probably want to set up Home Sharing.
    http://support.apple.com/kb/HT4620
    Also see here:
    http://support.apple.com/kb/HT3819

  • How to make a rubber effect like when you swipe between apps using 4 fingers on iPad ?

    Hey guys,
    So how to make a rubber effect like when you swipe between apps (first or last app) using 4 fingers on iPad iOS7 ? Any examples ?
    Thanks!
    Ivan

    Please do not double post the same question.
    Just like I said before. Animate X scale and position. Set the anchor point of the left image to the left side. You can then use an expression or just generate keyframes for scale. When you flip to the next screen then animate position. Easy basic animation except for the bounce. Key framing the bounce so that it looks natural takes a lot of experience or an expression.
    Google bounce expression after effects and find this. http://www.motion-graphics-exchange.com/after-effects/Wiggle-rubber-bounce-throw-inertia-e xpressions/4ad0f32a944ad
    There are a bunch of other solutions.
    There is no single click solution to this problem and it is not an effect, it is an animation.

  • How to make a tts text-to-speech keyboard shortcut

    Hi,
    How do I make a tts text-to-speech keyboard shortcut
    to control the OSX "Speech" available as a contextual menu
    when you right-click selected text in Safari, TextEdit and other native apps
    *Speech > Start Speaking*
    *Speech > Stop Speaking*
    I can get this far:
    *System Preferences > Keyboard > Keyboard Shortcuts >*
    I have low-vision and need this on as many as possible or all text running on my computer.
    Less important: The "Speech" contextual menu is not available right-clicking text in Google Chrome. I could sure use it there too.
    THANKS!

    If you want it turned on permanently open Universal Access preferences, click on the Seeing tab, turn on VoiceOver. Click on the VoiceOver Application button for more configuration options.
    There's also a shortcut option for TTS in the Speech preferences.

  • I m not able to sign in in itunes cuz i dont have a  credit or debit card.so how to make id without payment option

    i wnat to know that how to make apple id without credit or debit card....cuz i dont have....but i want to download apps for my ipod touch

    Create a NEW account using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card

  • How to make a impressive text animation?

    Hi everyone,
    I have completed my video, but now I want to add some text to it, I tried using title, and I love one of those style in there, but I want to make a impressive text animation (transition). There's no way I can do it with the effect control tab, I want text appear and disappear with fire around or appear like typing style something like that. Is that anyway to do it, or any other softwares that can easily do what I expected? Please help, this is urgent.
    Thank you.

    Besides the great suggestions so far, you might want to look into a couple of 3rd party programs:
    BluffTitler (I think that it has a "fire" Effect as a Preset, and does have "Typewriter")
    ProDAD's Vitascene, along with their Heroglyph
    Pixelan's Spice Master (more for Transitons, but you can create custom Effects too)
    Good luck,
    Hunt

  • How to make the LONG TEXT as mandatory

    Hi,
    In one tansaction, I need to make the LONG TEXT as mandatory.
    or
    I need to raise an Error message if the long text is empty.
    Thanks

    I want to make the long text mandatory in the transaction F-66.
    In this, long text field (text box) is not displaying directly for typing.
    We need to click on the button LONG TEXT, then text box is opening for typing.
    I need to make this as mandatory.
    Thanks

  • How to make the option none in the payment information from app store

    how to make the none option in payment information in app store??????using iphone
    i made a purchase from my card then after i tried to make another purchase that is free but while doing this a massege appears "review your payment information" then it goes back to app store.tell me how to make none option in apple account payment information using iphone??????

    surendramandia wrote:
    i don't want to creat a new account i want  none payment option in my existing account
    This has been suggested by other Users, but have not tried it myself...
    ' ... Get an iTunes gift card & redeem that in iTunes using your existing Apple ID.
    Then the option for none, regarding a credit card should appear...'

  • **Tech explanation why BACKUPS take long, how to make it very short, etc*

    I noticed my backups to increase quite a bit over the last few days. I also noticed so many posts on why are backups taking so long, what can I do (only solution given is to click x or modify so that backups are not done, etc). Well to answer all those that want the "real" answer, I decided to do a few minutes of research and share what I've learned. I have seen nothing at all on google or anywhere else about the recommendations I'm suggesting, but from my experience I think it will answer 99% of all the backup threads on this site.
    All your backups are being stored in:
    XP: C:\Documents and Settings\(Your Name)\Application Data\Apple Computer\MobileSync\Backup\
    Vista: C:\Users\*Your User*\Appdata\Local\Apple Computer\
    Mac: ~/Library/Application Support/MobileSync/Backup
    The main directories are GUIDs that are based on the version of the iphone, so you may see more than one folder. Make sure to view the date last modified of the folder to make sure you go into the latest one. Order the files inside this directory by date modified. Here you can see how many files are being updated ON EVERY BACKUP. The older ones are not being backed up anymore because you probably uninstalled that app on the iphone (apple doesn't delete old unnecessary backup files that won't be ever used - bad programming #1). They are encoding all these files and inside the files in base 64, so you can decrypt them to view the contents, but you don't really need to and I don't have to show how for the solution to this. Open a file in wordpad. Within the first few lines you'll get an idea of what the backup is.
    So here is the solution....sort these files by date modified. My biggest single file was 29,582KB!! looked inside and it's the WeDict app. There are other files from WeDict, but obviously for me if I want fast backups I need to get rid of this app. A few other top files I found are awesome apps on the iphone that have awesome trailers, intro movies for games, etc. Well guess what, they backup every single game intro, trailer, etc. So for instance, the game tap tap tap has a few m4a songs....well every one of those m4a songs are encrypted and backed up EVERY TIME (apple backups up files that don't need to be backed up which would probably reduce backup times by at least 98% - for instance, intro movies don't need to be backed up, nor app songs, nor game instructions, etc because that information should be on itunes backed up separately when you install an app, not when you do backups and it should be smart enough to update that folder when a new version is out....and only do backups on files that can change like high scores in apps, notes, etc - bad programming #2).
    So anyway, you can see which apps are taking the most amount of time. Obviously if you remove every app on your iphone, it will backup fast, but some of these apps are shockingly huge. Problem here is that you can have 1 file or 100 files associated with 1 app. You could have only 2 apps installed on your iphone and your backups could be slower than a person having 30 apps just because some apps take a ridiculous amount of more backup data and time and what makes this even worse is every part of the data is encrypted, which I will talk about below (which doesn't need to be). Only time that file is not going to get updated is if it's deleted from your iphone.
    You don't HAVE to use base 64 encryption. Come on now, especially on apps? They could lighten the encryption and it would be much faster backups because it has to decode and encode every file now. You are overencrypting these files so huge programs take forever backups. (Bad apple programming #3 don't over encrypt when speed is a necessity on something that doesn't need extreme high security).
    As a developer with a computer engineering degree, to also make it even faster than what users were experiencing with backup times prior 2.0. They are obviously not tagging each portion that needs to be backed up individually. Lots of software companies do this to speed stuff up. For instance if you have Kaspersky antivirus with the defaults, the first scan will always take long, but every scan afterwords will be fast because instead of rescanning that file for a virus, it just checks to see if the checksum has changed and if so rescan that file, so most of the time the scan will happen fast unless there has been a period of time that you haven't done one that updates the checksums. They could do something very similar with this. So basically even if you changed a few things on your phone, the backup should be only a few seconds because only those few changes would be signaled to be rebacked up. (bad apple programming for backups #4). This process can make backups be from 98% faster to 99.98% faster....meaning having a backup only take 4 seconds even with 100 apps installed. Actually coding this one thing would make it extremely fast, but would take the most programming time. You can even make an algorithem where for the whole backup process it would just have to read one file that it would check checksums and then tell it to modify 1 or 2 other files and that's it as opposed to backing up (for me almost 5,000 files) some being several MB in size.
    So all the above should give apple suggestions on how the can speedup backups by 99.98% faster than how they are doing it now and then anwers all those questions why it takes longer, what needs to change, how can I shorten my backups (this way you can find out what apps are taking the most time), etc.
    The problem here is apps will continue to grow, become larger, more trailers, movies, songs embedded inside apps, etc. This problem is only going to grow. The additional problem is that they can say they have tweaked the backup programming to make it faster, just like they did in 2.0.1, but backups seem slower because there are newer better more awesome apps out!! Well that's why it doesn't look like it's faster but it's slower! They will keep doing this as opposed to solving the root of the problem by recoding the whole backup foundation as I'm suggesting from above. Backups will forever take longer and longer and longer and longer. That is what you have to look forward to. My guess is that they are not going to fix the foundation of how backups are done anytime soon having a good idea how they are doing this one. They would have to do a massive overhaul of the whole backup code, which basically they would have to admit that all the time coding this way was a waste and they see no profit from it and we deal with it just by pressing x sometimes. We can complain all we want, but for awhile if you don't want long backups, this is the real solution. What's funny is writing this email took much more time than figuring out what apple is doing, but I think this will help many apple iphone users. Let me know what you guys think.

    Supposedly apple made backups slightly faster on 2.0.1, but like I said in my original posting above...it will get worse and worse because of the apps.
    Just to verify and you could do this yourself. Right before you plug in to sync and it auto starts the backup process do this...go to the folder where all the files are as mentioned above, sort it by date modified. Add a refresh button on the toolbar. Then start the sync/backup, keep refreshing and you see the files getting updated. There are even temporary files apple's backup process creates that you don't see that keeps adding to a file, so even if you see one file updated, you might see it updated a few times until the whole backup for that file completes.
    Here are my stats:
    For me this time it took 27 minutes (earlier it took 2 minutes, but like i said with updates to apps, more apps, depending on types of apps, your computer speed, etc it will increase.
    For me: In 27 minutes, it updated 1707 files with a total size of 82.8MB. There are a ton of computers that are much faster than mine that I'm sure would cut the minutes down. I have 6 pages of apps, but like I mention above, that doesn't matter because you could have one app that has 400 files with a large size. I would be interested in others posting their results, maybe in this format:
    27min 1707files 82.8MB Pentium4HT Antivirus and other large programs running in background.
    If you are interested you can even download program that will decrypt these files so you can view them in more detail...for mac, for instance, there is something like this: http://mac.softpedia.com/get/iPhone-Applications/Tools-Utilities/iPhone-Backup-D ecoder.shtml It allows you to backup and modify. It may help you decide what is taking your backups so long and you can decide if it's worth having that app installed versus not having a good backup. You can also pick out you sms backup file, contacts backup file, etc for those really interested in having backups of those specific files.
    Hope this helps clear up things for everyone.

Maybe you are looking for

  • Internet recovery gets stuck on the spinning globe with the progress bar below.

    Hello Everybody! I'm trying to fix the iMac (27-inch, Mid 2010) of my friend. He said it doesn't boot anymore and just gets stuck on the grey screen with the Apple logo and the spinning wheel below. So my first step was to go into the Startup Manager

  • IPod Nano synching error 13019

    I've seen this error message in other posts and (I think) I've tried all the suggestions to no avail.  My issue is that I didn't start getting this error until I switch to an iPhone a couple of months ago.  Everything synchs properly to the iPhone, b

  • Game Help, please?

    I downloaded Bejeweled for my iPod using my mom's account (which is verified on my computer) and it says I'm not authorized to play the game, yet I can still listen to music downloaded from her account. Any idea how to fix this? Any help would be gre

  • How to re init sword swv1[128],swv2[128]

    sword status, swv1[128], swv2[128], swv3[128], swv4[128], swv5[128], swv6[128];      checkerr(errhp, OCIDefineByPos(stmthp, &defnp, errhp, 1,(dvoid *) &swv1, 9, SQLT_CHR, (dvoid *) 0, (ub2 *)0,(ub2 *)0, OCI_DEFAULT));      checkerr(errhp, OCIDefineBy

  • Quicktime X player graphic corruption

    Just curious if anyone has seen this, or thoughts on what I could try to fix it. In I open say an MP3 in quicktime, and then try to resize the player window (drag it out horizontally) it goes all wonky, and doesn't resize properly, just goes all jagg