Fixing size of control

Hi all ,can any one help me…
Is there is any method, so that ,
We can fix the size of control, on front panel
So that no one can change it.
Tandal

You can lock the control on the front panel as attachment.
Attachments:
untitled.JPG ‏40 KB

Similar Messages

  • GUI component size/position control

    Hi, everyone. I am trying to write a board game in Java. From my previous experience (I wrote a oscilloscope control interface using JFrame last year), most (or all?) of the GUI components (such as buttons and slider) change their sizes and positions automatically, when I used FlowLayout or BoardLayout layout manager. I also tried the BoxLayout layout manager, but it didn't work well.
    Are there any way that I can control the size and the position of GUI components? By using a specific layout manager? or are there any way other than using different layout manager?
    When I create my board game, I want my buttons to sit on the exact location I want, and appear at the size I want.
    Thanks a lot.
    Davidson

    Absolute positioning or writing your own layout manager is easier than you think, especially in the case of a board game.
    Here is what you can do to use existing java class:
    1. extends a JPanel with GridLayout, and overide all methods involving get size and set Size to fixed size. This is your actual game board.
    2. use another JPanel with horizontal BoxLayout, add the panel in step 1 first, then add a Horizontal Glue, so in this new Panel, the width of your game board is honored here.
    3. use another JPanel with verical BoxLayout, add the panel in step 2 first, then add a vertical glue. The height of the game board is honored here.
    4. Both the width and the height are guarantteed to be fixed when the painting area is larger than the actual board.
    5.To handle the case where the painting area is smaller than the board, you can use a JScrollPane, or to set the minimum size of the parent container so that it won't happen.

  • [svn:osmf:] 14036: Tweaking sample to have the parallel element use a fixed size.

    Revision: 14036
    Revision: 14036
    Author:   [email protected]
    Date:     2010-02-08 06:31:10 -0800 (Mon, 08 Feb 2010)
    Log Message:
    Tweaking sample to have the parallel element use a fixed size.
    Modified Paths:
        osmf/trunk/apps/samples/framework/LayoutSample/src/LayoutSample.as

    Hi,
    thank you for your fast reply. Please find attached my code where I marked the array creation with green circles and the control part with a red one. I removed all the other stuff and loops which are not relevant here (heart beat loop, value initialization, DMA fifo, etc). The sampling rate should be up to 50kS/s for capturing signals with a frequency of the range of 10 to 500Hz).
    @ Spectre Dave:
    I would like to do it in the FPGA because my host part (cRIO PPC) is already overloaded and I had a lot of problems to get it running and save the data to a file with the high sampling rate (50kS/s). I was thinking that simple array functions would be an easy thing for an FPGA. Or am I wrong??
    Please let me know if you have any idea or if you need more information.
    Thank you very much and best regards
    Andreas
    Attachments:
    FPGAarrayProblem.png ‏189 KB

  • Best way to create a fixed size centered Panel?

    I'm trying to figure out what the best way is to create a fixed size Panel that stays positioned in the center of its parent component/panel, even as the frame is resized. Is there a way to do this with some layout or will I need to write some code to reposition my panel each time the frame is resized?
    Thanks
    Jonathan

    This approach seems good. One thing I'm wondering, why does the GridBagLayout draw my Panel based on the preferred size and not the bounds? If I want to do some sort of fancy painting with my panel, I'll probably have to set the bounds as well I'd think.
    jonathan
    Here's a way. I won't go so far as to say "best",
    but it gets the
    job done. You need to control the layout of the
    parent in order for
    any solution to work -- some layouts will ignore the
    preferred,
    maximum, and minimum sizes of their components.
    import java.awt.*;
    import javax.swing.*;
    public class CenterTest {
         public static void main(final String[] argv) {          
              final JPanel fixedPanel = new JPanel();
    fixedPanel.setPreferredSize(new Dimension(100,
    0, 100));
              fixedPanel.setBackground(Color.BLUE);
    final JPanel panel = new JPanel(new
    ew GridBagLayout());
              panel.setBackground(Color.CYAN);
              panel.add(fixedPanel);
              final JFrame frame = new JFrame("GridBagLayout");
              frame.getContentPane().add(panel);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)
              frame.setSize(200, 200);
              frame.setVisible(true);

  • Fixed Size Table

    I'm creating an rtf template for a master detail report which will be printed over template papers not white papers, so i want to make a fixed size table lets say of 10 rows for details. When i tried to make a table of 10 rows and put the for each loop statement in first row i got table of details + 9 empty rows !! so please can anyone guide me here.
    Thanks in advance.

    Does it really make sense to specify a limit in terms of storage space rather than time? If there is a 500x difference in the number of inserts over the course of an hour, it seems likely to me that users would generally want to keep a certain number of days worth of log information rather than keeping a certain volume in MB. If you ask for a limit in MB, users that use the low rate of inserts would end up with a table so small that if you got to the point of generating lots of records you'd be aging them out far too fast-- those that use the higher rate of inserts would end up with a huge table that has far more history than they need just to accomodate keeping a certain window of log records at the peak.
    If you are determined to limit the size of the table, you could potentially run a program periodically that determines the size of each partition (via DBA_SEGMENTS) and then drops the oldest partition if the overall size is too large. But a single partition is likely not to have a huge level of granularity-- you're probably not going to partition by much more than the day, so dropping the oldest partition would purge all the logs for that day. You could potentially get more control over space by not partitioning the table and just deleting the last N rows if you are over the limit, but that probably involves much more frequent checks of space usage and is far, far less efficient in doing the actual deletes.
    Justin

  • How to resize a jpg/gif file to a fix size using jimi ?

    I have search from the web and didn't find any example on doing this.
    Can any one give example on how to resize a jpg image. let say 120x240
    to a fixed size 40x40 ?
    thank you

    Hi.
    When you got that image in form of a file, just load it and invoke the image's getScaledInstance(...)-method.
    Here's how it could work:
    import java.awt.*;
    public class Test {
    public static void main(String[] argv) {
      // define where the image comes from:
      URL toImage = new URL("file:/C:/test.jpg");  // or the like
      // get the image:
      Image image = Toolkit.getDefaultToolkit().createImage(toImage);
      // scale the image to target size (40x40 here):
      Image smallImage = image.getScaledInstance(40, 40, Image.SCALE_DEFAULT);
      // you might want to do other things like displaying it afterwards
    }HTH & cheers,
    kelysar

  • Fixed size regions in Apex 4.0

    It is possible to create a fixed size regiion - that is only using half of the screen height to have a report (and having a bar to on the right to move up/down) ?
    I'm going to use it for a 2+ master-detail report.
    regards
    Mette

    Hi Mette,
    what region template and which theme are you exactly using? For most region templates you can pass in additional style attributes with the "Region Attributes" property in the "Attributes" section of a region definition.
    So for example you could use
    style=\"height:500px;overflow-y:scroll\"(remove the \ out of the code example)
    Regards
    Patrick

  • How to change the size of control´s prompt?

    No matter the size of data to be displayed in the view suface prompt, the controls have the same size.
    Does anyone here know how to change the size of control in surface prompt?

    HI,
    In order to change the size of a radio button... one way you may consider is to Customise the Radio Button.
    Place a Radio Button (RB) on the FP of a VI, Right-Click the RB > Advanced > Customise...
    Click the Mode Button (most Left button) for Edit Mode
    Right-click the radio button (the round image) now, you will see a list of actions i.e. Copy to clipboard, import picture ...You will see Four images under the 'Picture Item', those are the images that you will need to replace.
    Prepare Four Images of the similar but larger expected size
    *** Copy the 1st new image to clipboard. Back to the Picture Item and select 1st image. Then, select Import Picture (to replace the existing image)
    Repeat *** for all four images.
    Once done, change the mode back to original. Save the *.ctl
    You are now ready to use the customised radio button!
    Quick sample attached (sorry for the poor images created )
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    IFK_RButton_Large.ctl ‏11 KB

  • Size of control file

    Hi,
    How can I define the size of control files ?
    I will create my DB with a script and before in init.ora file I will define location and name of control files but how about the size , I want them 50Mb only for each.
    Many thanks.
    Message was edited by:
    user522961

    Hi,
    The size is controled by the following parameters.
    control_file_record_keep_time
    maxlogfiles
    maxlogmembers
    maxloghistory
    maxinstances
    look at this link for more info.
    http://www.adp-gmbh.ch/ora/concepts/controlfiles.html
    Thanks

  • Hyper-V 2012 R2 - Fixed Size VHDX Have VMs Paused Due to Disk Space Shortage

    I am running Hyper-V Server 2012 R2 (Server Core).  I have an SSD boot drive and a 10 Tb Storage Space HDD (Double Pairty - RAID6) where all VMs are stored.
    I have one VM setup with an expanding VHDX file.  It is setup with thin provisioning for 2 Tb and about 1.5 Tb is currently used.  The VM paused due to physical disk space (SS drive) being low.  I turned off this VM and tried to start a different
    VM that has two fixed size VHDX files (also on the SS drive).  This second VM would not start either.  I got the same error message, as occurred on the first VM, about the physical disk space being low.  There was about 10-20 Mb of physical
    space left of my SS HDD when these errors occurred.
    Given the first VM is setup with an expanding VHDX that makes sense to me that at some point there may not be enough physical disk space for the VM to expand and continue to run.
    But given my second VM is using a fixed VHDX it doesn't make sense to me that I cannot get this VM to start.  Even if the Storage Space disk were completely full I would expect this VM to be able to start?
    Thanks for any assistance you can provide.
    Theokrat

    Hi Theokrat,
    "The HDD was setup with approximately 5 Tb storage pool as double parity."
    "My first VM has a 4 Tb fixed VHDX. Thus there was only about
    1 Tb free space left for the second VM."
    "And for the VMs I'm asking about I set up those options to point to my HDD which is the D drive."
    So, there are two VMs (the first VM has 4TB disk , the
    second VM has 1TB disk )and all of the VMs'  files
    are stored on the 5TB HDD (the 1TB VHDx is dynamical) .
    You turned off the second VM when it was paused due to lacking of disk space (before this the first VM is off ).
    When you start the first VM , it still can not start and the error arose again ,right ?
    If there is no any other factor led to disk usage increasing , I think the issue might be the startup memory of first VM is larger than or equal to the second VM's .
    Please try to check that , if it is true , you can try to set lower memory for the first VM then start it again .
    Best Regards
    Elton JI
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How to set fixed size for inputfile text field

    Hi all,
    I am using inputfile component to test file uploading so I created a simple upload page. When I finished upload the file, the input text field will "shrink" its size and change the size to adjust the file name. Is there any way to set a fix size for input text field?
    Here is some part of the code:
    <af:form id="f1" usesUpload="true">
    <af:panelHeader text="File Uploader" id="ph1">
    <af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
    value="#{fileBean.file}" partialTriggers="if1"
    columns="50"/>
    </af:panelHeader>
    <af:commandButton text="Save" id="cb1"/>
    FileBean:
    public void fileUpdate(ValueChangeEvent valueChangeEvent) {
    RichInputFile inputFileComponent = (RichInputFile)valueChangeEvent.getComponent();
    UploadedFile newFile = (UploadedFile)valueChangeEvent.getNewValue();
    UploadedFile oldFile = (UploadedFile)valueChangeEvent.getOldValue();
    Thanks,
    Jerry

    you can set columns attribute in af:inputfile. Please see highlighted area i have inserted to you code
    <af:form id="f1" usesUpload="true">
    <af:panelHeader text="File Uploader" id="ph1" columns = "34" >
    <af:inputFile label="File to upload" id="if1" autoSubmit="true" valueChangeListener="#{fileBean.fileUpdate}"
    value="#{fileBean.file}" partialTriggers="if1"
    columns="50"/>
    </af:panelHeader>
    <af:commandButton text="Save" id="cb1"/>

  • How to set a fixed size window, so that moving 2D pictures wouldnt go off?

    Hi
    I dont if this question has been asked or no & also not sure if its right to be posted here as my problem is a java 2D graphics problem in swing environment.
    I want to know is how can i set the window to a fixed size with boundaries such that my graphics 2D picture in the swing window will not go off the edges of window when i do some transformations with the 2D picture.
    For e.g:
    so far ive got a frame window of size 350 by 350 with my 2D picture inside it made up of shapes etc...
    when i apply some transformation to it (moving it) for a distance it goes disappeared off window beyond 350 and will come back if i move it back.
    So how do i restrict the window so that when picture reaches the edge, it will not be able to move any further?
    Do i set some specific bounds to the JFrame?
    i hope i've explained it properly
    Thanks

    In a 2D coordinate system the horizontal values are represented by some letter, usually x. In the same coordinate system the vertical values are classically represented by y.
    Note: In your code, if you wish, you can replace x and y with anything you desire--p and q or perhaps jeff and alice or any variable name you wish, but for simplicity, and usually ease of understanding because almost everyone has had 100's of math problems drilled into their head with (x, y), x and y are used as convention.
    In Java the screen coordinates run from 0 to the width-1 for x and 0 to height-1 for y of the component you are using to display.
    So logically when you have a value of x or y that goes beyond the addressable bounds of your display, then you have to make some type of adjustment--when your value dips below 0, you reset it to 0, when your value goes above what ever width-1 or height-1 then you have to set that value to width-1 or height-1.
    This all assumes that when you hit the wall, floor, or ceiling you stick there until you change directions--if you wish to wrap then you set your value to the opposite bound--so if you go below 0, you would then pop out back in on the right side--your appropriate x would be set to width-1 instead of 0 and in the case of y going below 0 your y would be set to height-1. This is also to say that when you descend below your minimum, then you would pop back out on the opposite side you went out on--so x greater then width-1 would get set to 0 and y greater than height-1 would get set to 0.
    That is not even a start on if you want to include elastic collisions, angle of impact, any type of deceleration force, or anything else.
    In any case... I would recommend that you add more math to your studies, I've never met an engineer or computer science grad that said: "Wow, I really regret taking all that math in college (or HS), I never use it."

  • Fixed Size Thread Pool which infinitely serve task submitted to it

    Hi,
    I want to create a fixed size thread pool say of size 100 and i will submit around 200 task to it.
    Now i want it to serve them infinitely i.e once all tasks are completed re-do them again and again.
    public void start(Vector<String> addresses)
          //Create a Runnable object of each address in "addresses"
           Vector<FindAgentRunnable> runnables = new Vector<FindAgentRunnable>(1,1);
            for (String address : addresses)
                runnables.addElement(new FindAgentRunnable(address));
           //Create a thread pool of size 100
            ExecutorService pool = Executors.newFixedThreadPool(100);
            //Here i added all the runnables to the thread pool
             for(FindAgentRunnable runnable : runnables)
                    pool.submit(runnable);
                pool.shutdown();
    }Now i wants that this thread pool execute the task infinitely i.e once all the tasks are done then restart all the tasks again.
    I have also tried to add then again and again but it throws a java.util.concurrent.RejectedExecutionException
    public void start(Vector<String> addresses)
          //Create a Runnable object of each address in "addresses"
           Vector<FindAgentRunnable> runnables = new Vector<FindAgentRunnable>(1,1);
            for (String address : addresses)
                runnables.addElement(new FindAgentRunnable(address));
           //Create a thread pool of size 100
            ExecutorService pool = Executors.newFixedThreadPool(100);
            for(;;)
                for(FindAgentRunnable runnable : runnables)
                    pool.submit(runnable);
                pool.shutdown();
                try
                    pool.awaitTermination(Long.MAX_VALUE, TimeUnit.SECONDS);
                catch (InterruptedException ex)
                    Logger.getLogger(AgentFinder.class.getName()).log(Level.SEVERE, null, ex);
    }Can anybody help me to solve this problem?
    Thnx in advance.

    Ravi_Gupta wrote:
    *@ kajbj*
    so what should i do?
    can you suggest me a solution?Consider this thread "closed". Continue to post in your other thread. I, and all others don't want to give answers that already have been given.

  • Fixing Size of Column in Cross Tab

    Plz tell me how to fix Size of column.in my case the data in column is not fixed so the output in PDF shows different size of Columns.I want want to fix them.
    plz help
    thanks in advance

    You can call (on your table) getColumnModel().getColumn(i).setWidth(), but that information is lost once you call tableStructureChanged in your table model. To solve this problem I use my own TableModel, which sets the with of the columns every time they are created:
    public class MColumnModel extends DefaultTableColumnModel {
         private int [] widths;
        public MColumnModel(int[] widths) {
              super();
              this.widths = widths;
         public TableColumn getColumn(int index) {
              TableColumn column = super.getColumn(index);
              if (column == null)
                   return column;
              column.setPreferredWidth(metaWidths [index]);
              return column;
    }Be sure to call setColumnModel before you call setModel on your table.
    The widths are relative. If you want to set absolute widths, you have to call
                   table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);Regards
    Der Hinterwaeldler

  • CL_GUI_DOCKING_CONTAINER with fix size

    Hi!
    Is it possible to create instance of CL_GUI_DOCKING_CONTAINER with fix size?

    lv_style = cl_gui_control=>ws_child + cl_gui_control=>ws_border + cl_gui_control=>ws_visible.
        CREATE OBJECT docking
          EXPORTING
            repid                       = repid
            dynnr                       = dynnr
            side                        = docking->dock_at_top
            ratio                       = 80
            style                       = lv_style
          EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            OTHERS                      = 6

Maybe you are looking for