How to repaint a panel

Hi All!
I am trying to display a few textFields in an AWT applet. The number of textFields I need to set is variable. I want to repaint a portion of an applet (the panel in which these textFields are placed) when a button is clicked.
In the code below, I added a textField array in panel 1(p1), initialized with record size (no_of_rec), which I know at the beginning (no_of_rec = 2 at INDEX = 0).
When I click "Next Item" button, I want to show 4 textFields (no_of_rec = 4 at INDEX = 1), with the values C, D, E, F.
One more click (INDEX = 2) should show one textField only, with the value X.
The codes for the textFields are in a method(addDataPanel), so that I can call it when I click "Next Item" button. A system.out check shows that 4 textFields are created when INDEX = 1, and so on, but with calling repaint() inside the button's actionPerformed method, I am unable to update the panel (p1) dynamically.
When I minimize the window with [-] button, and get back to the original size, I can see the no of textFields have increased to 6; 2 from the beginning and 4 from the first click.
Could someone please help?
Thank you.
Tienshan
Here is my code:
import java.awt.*;                           
import java.applet.*;                       
import java.awt.event.*;
public class test1020 extends Applet{
     int NO_OF_REC = 0;
     int INDEX = 0;
     TextField[] txtDataRowDisplay;
     String[] data;
     Panel p1;
     GridBagConstraints c1;
     Color pnlBgColor = new Color(144, 196, 222);
     public void init() {     
          data = getData(INDEX);
          NO_OF_REC = data.length;
          //main Panel
          Panel pMain = new Panel();
          pMain.setLayout(new GridBagLayout());
          GridBagConstraints c  = new GridBagConstraints();
          pMain.setBackground(pnlBgColor);
          //p0
          Panel p0 = new Panel();
          p0.setLayout(new GridBagLayout());
          GridBagConstraints c0  = new GridBagConstraints();
          c0.fill = GridBagConstraints.HORIZONTAL;
          p0.setBackground(pnlBgColor);
          //p1
          p1 = new Panel();
          p1.setLayout(new GridBagLayout());
          c1  = new GridBagConstraints();
          Button btnNext = new Button("Next Item");
          c0.insets = new Insets(0, 0, 10, 0);
          c0.gridx = 3;
          c0.gridy = 0;
          p0.add(btnNext, c0);
          btnNext.addActionListener(
               new ActionListener() {
                    public void actionPerformed(ActionEvent e){
                         INDEX++;     
                         data = getData(INDEX);
                         NO_OF_REC = data.length;
                         addDataPanel(p1, c1);
                         display(data);
                         p1.repaint();
          //call a method to add data row(s)
          addDataPanel(p1, c1);
          //add p0 and p1 to pMain;
          c.gridx = 0;
          c.gridy = 0;
          pMain.add(p0, c);
          c.gridx = 0;
          c.gridy = 1;
          pMain.add(p1, c);
          add(pMain);
          this.setBackground(pnlBgColor);
          display(data);
     }//init
     private String[] getData(int index){
          if(index == 0){
               String[] names = { "A", "B" };
               return names;
          else if (index==1) {
               String[] names = { "C", "D", "E", "F" };
               return names;
          else {
               String[] names = { "X" };
               return names;
    private void addDataPanel(Panel p1, GridBagConstraints c1){
          txtDataRowDisplay = new TextField[NO_OF_REC];
          for(int i = 0; i < NO_OF_REC; i++){
               txtDataRowDisplay[i] = new TextField(4);
          int cnt = 0;
          for(int m = 0; m < txtDataRowDisplay.length; m++ ){
               c1.gridx = 0;
               c1.gridy = m + cnt;
               p1.add(txtDataRowDisplay[m], c1);
               cnt++;
     private void display(String[] data){
          for(int i = 0; i < data.length; i++){
               txtDataRowDisplay.setText(data[i]);

BickelT , yes, it does work! I am almost there, only a small hurdle. When I initialize my textFields with a bigger size, all the smaller sizes are painted correctly. But when the initial size (when index is 0, that is at the time of init) is small, all the subsequent sizes are fixed to that init size.
For example, when I change my code to the following, it works fine.
private String[] getData(int index){
          if(index == 0){
               String[] names = { "C", "D", "E", "F" };
               return names;
          else if (index==1) {
               String[] names = { "A", "B" };
               return names;
          else {
               String[] names = { "X"};
               return names;
     } With the code as it is (as posted originally), in the first click, a textField with space(=height) for two textFields is painted with the value C and the lower half is empty. It is refusing to draw the area bigger than the init size of 2. When I resize the applet, I can see that four textFields with the values C, D, E, F.have been painted.
I added the codes you suggested inside the addActionListner class. Isn't that the correct place to add the codes?
BTW, with or without p1.repaint, the result is the same.
What could have gone wrong?
Thank you.

Similar Messages

  • How Java2D repaint( ) works?

    Never mind my problem with not drawing lines. Found the error myself. But it is still greatly appreciated if you could explain how repaint( ) works.
    << Edit ends >>
    Old post:
    I am very new to Java2D. I am programing an application that need GUI and 2D and got curious about how a panel with '2D' image updates the content.
    The program has GUI interface with all menu and buttons, displaying an empty 'content' panel in the middle at the start. Information will be read in from a file and the program should display series of boxes like this:
    |    |        |     |             | |        |         |
    and another one
    |           | |      |           |  |              |   |
    --------------------------------------------------------Then, a button named 'align' will match the box stretches between two neighboring series, and the program suppose to display like this:
    |    |        |     |             | |        |         |
                        |                        |
    |______________________|_______________________________
    |             | |      |           |  |           |   |
    --------------------------------------------------------pseudo code for related components is like this:
    public class alignbox {
      private Boxes[ ]boxes; // store information of box series
      private Alignment aln; // store informations of alignment
      private jFrame frame;
      private jButton[ ] quite_a_few_buttons;
      private DrawPanel pane = new DrawPanel( );
      ... // after button is clicked
      frame.getContentPane( ).repaint( );
      // "content panel"
      private class DrawPanel {
       public DrawPanel( ) {
         init( );
       void init( ) {
          Shape[ ] boxShapes = new Shape[ numOfSeries ];
          for (each bs of boxShapes)
             bs = getPath (boxes);
         Shape[ ] alignedLines = new Shape [numOfSeries -1];
          for (each line of alignedLines)
              line = getPath (aln);
      void paintComponent(Graphics g){
            init( );
            // draw boxes after "open" file
            // daw boxes and alignment lines after "align" button pressed
    }from what I read, paintComponent(Graphics g) is the main play displaying images I want. I can get boxes display fine, but I couldn't get alignment line displayed at all.
    Does repaint( ) call paintComponent( ) at all? I include 'init( )' in the paintComponent( ). will it allow the updates of boxes[ ] and aln reflected in the DrawPanel?
    if not, how do I 'tell' DrawPanel that boxes infor or alignment info has been updated and redisplay the content? Should there be a better way to do so unlike my clumsy method?
    Thanks!

    Swing related questions should be posted in the Swing forum.
    The repaint() invokes the paint() method which in turn ivokes the paintComponent() method (among others). Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/14painting/index.html]Painting for more information.

  • How to create collapsible panel in flex3

    I
    How to create Collapsible panel in flex.
    If you observer above image. There are three panels.For ffirst and last panel i have provided one button where it contains open/close button.When user selects close button left panel should collapse to left hand side and the same should come to its original postion. In case of right panel is the same process except it should collapse to right side.
    Below is my code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="init()" >
    <mx:Script>
      <![CDATA[
      import flash.net.FileReference;
      import mx.controls.Menu;
      import flash.display.Stage; 
      import mx.events.MenuEvent;
      import mx.controls.Alert;
      import mx.events.ListEvent;
      import mx.managers.DragManager;
            import mx.core.DragSource;
            import mx.events.DragEvent;
      import DrawingClasses.Designer;
      [Bindable]
      [Embed(source="/images2/line.png")]
      public var linePicture:Class;
      [Bindable]
      [Embed(source="/images2/box.png")]
      public var boxPicture:Class;
      [Bindable]
      public var xm:XML =
      <AbstractComponentTemplate></AbstractComponentTemplate>;
      public var compType:XML =
       <ComponentTemplateDescriptor>
        <Owner>BackTesting</Owner>
        <Name>Component</Name>
        <Version>1</Version>
       </ComponentTemplateDescriptor>;
      [Bindable]
            private var cm:ContextMenu; 
      public var xm1:XML;
      public var loopparent:Array = new Array();
      private var mouseTarget:DisplayObject;
      private var xOff:Number;
      private var yOff:Number;
      private var designer:Designer = new Designer();  
      private var i:int;
      private var j:int;
      private function init():void
       designer.setDesignArea(designArea);
       var cmi1:ContextMenuItem = new ContextMenuItem("Properties", true);
                cmi1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contextMenuItem_propertiesSelect);
       var cmi2:ContextMenuItem = new ContextMenuItem("View XML", true);
       cmi2.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contextMenuItem_viewXMLSelect);
       var cmi3:ContextMenuItem = new ContextMenuItem("Saved Components", true);
       cmi3.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contextMenuItem_savedListSelect);  
       cm = new ContextMenu();
       cm.hideBuiltInItems();
       cm.customItems = [cmi1, cmi2, cmi3];
       cm.addEventListener(ContextMenuEvent.MENU_SELECT, contextMenu_menuSelect);
      private function contextMenu_menuSelect(evt:ContextMenuEvent):void {
      private function contextMenuItem_propertiesSelect(evt:ContextMenuEvent):void {
        accrCon2.label = "Two Way Split - Properties";   
        accrWin.selectedIndex = 1;
      private function contextMenuItem_viewXMLSelect(evt:ContextMenuEvent):void {               
        viewstack1.selectedIndex = 1;
      private function contextMenuItem_savedListSelect(evt:ContextMenuEvent):void {               
        accrWin.selectedIndex = 0;
      [Bindable]
      private var propValue:String = "Component";
            private function itemClickEvent(event:ListEvent):void {
       var propKey:String = dgProp.selectedItem.@key;
       if (propKey == "name") {
        propValue = dgProp.selectedItem.propvalue;   
      [Bindable]
      private var sourceXML:XML =
      <order>
       <!--This is a comment. -->
       <?PROC_INSTR sample ?>
       <item id='1'>
        <menuName>burger</menuName>
        <price>3.95</price>
       </item>
       <item id='2'>
        <menuName>fries</menuName>
        <price>1.45</price>
       </item>
      </order>;
      [Bindable]
      private var savedComp:Array=['ComponentTemplate',
      'iv85341.EquityCash.v1',
      'ra92724.ThreeWaySplit.EU.US.OTHERS.v1',
      'ra92724.TwoWaySplit.EU.OTHERS.v1',
      'ra92724.TwoWaySplit.US.OTHERS.v1',
      'iv85341.VanillaNode.v1',
      'iv85341.ReadGmrFs.v1'
         [Bindable]
         private var propData:XML =
          <properties>
           <prop key="name">
            <propvalue>Component</propvalue>
         <itemRenderer>mx.controls.NumericStepper</itemRenderer>
           </prop>
           <prop key="Version">
            <propvalue>1.0</propvalue>
         <itemRenderer>mx.controls.NumericStepper</itemRenderer>
           </prop>
           <prop key="Owner">
            <propvalue>iv85341</propvalue>
         <itemRenderer>mx.controls.NumericStepper</itemRenderer>
           </prop>
           <prop key="width">
            <propvalue>250</propvalue>
         <itemRenderer>mx.controls.NumericStepper</itemRenderer>
           </prop>
           <prop key="height">
            <propvalue>300</propvalue>
         <itemRenderer>mx.controls.NumericStepper</itemRenderer>
           </prop>      
           <prop key="X-Pos">
            <propvalue>40</propvalue>
         <itemRenderer>mx.controls.NumericStepper</itemRenderer>
           </prop>
           <prop key="Y-Pos">
            <propvalue>20</propvalue>
         <itemRenderer>mx.controls.NumericStepper</itemRenderer>
           </prop>
          </properties>;
       private function rightClick(event:MouseEvent):void
        Alert.show("Properties ..." + event.currentTarget, "Open");
       // Draging Code Starts Here
       private var curDate:Date = new Date();
       private var dateList:XMLList = null;
       public function pictureDragDrop(event:DragEvent):void { 
        //Alert.show (" com = " + event.dragSource.dataForFormat("key"));
        var nodeName:String = event.dragSource.dataForFormat("key").toString(); //txtInput1.text;
        var nodeValue:String = "";
        if (nodeValue == "")
         if (xm == <AbstractComponentTemplate></AbstractComponentTemplate>)
          xm.appendChild(compType);
          dateList = new XMLList("<DateCreated>" + curDate + "</DateCreated>");
          xm.appendChild(dateList);     
          dateList = new XMLList("<DateModified>" + curDate + "</DateModified>");
          xm.appendChild(dateList);
          xm1 = XML("<" + nodeName + "></" + nodeName + ">");
          xm.appendChild(xm1);
         else
          i++;
          xm1 = XML("<" + nodeName + "></" + nodeName + ">");
          xm.appendChild(xm1);
          //loopparent.push(xmlarray:xm1);
          loopparent[i] = xm1;     
        else
         var xmlList:XMLList = new XMLList("<" + nodeName + ">" + nodeValue + "</" + nodeName + ">");
         if (xm1 == null)
          xm.appendChild(xmlList);
         else
          for (j = i; j>0; j--)
          (loopparent[j]).appendChild(xmlList);
          //Alert.show("alert");
        var x:int = event.currentTarget.mouseX - xOff;
        var y:int = event.currentTarget.mouseY - yOff; 
        if(event.dragSource.dataForFormat("key") == "box")
         designer.addBox(x, y); 
        else  if(event.dragSource.dataForFormat("key") == "circle")
         designer.addCircle(x, y);
        else
         designer.addRectangle(x, y);
        //txtInput1.text = "";
        //txtInput2.text = "";
       // this method gets x and y coordinate of template box image
       private function myoffset(img:Image):void {
        xOff = img.mouseX;
        yOff = img.mouseY;
       // this method does acceptable draging box image
       public function pictureDragEnter(event:DragEvent):void{
        DragManager.acceptDragDrop(Canvas(event.target));       
       // this method supply drag box when mouse move on the design area
       private function dragPicture1(event:MouseEvent, img1:Image,format:String):void{
        var dragInitiator:Image=Image(event.currentTarget);
        var ds:DragSource = new DragSource();
        var imageProxy:Image = new Image();
        imageProxy.source = img1.source;    
        imageProxy.height= 150;
        imageProxy.width= 150;
        ds.addData(format,"key");
        DragManager.doDrag(dragInitiator, ds, event,imageProxy, 0, 0, 1.00);
       // this method works when click on the line button
       // it is make enable to draw line
       public function doDrawEnable():void {
        designer.setIsDrawEnable(true);  
       private var fileRef:FileReference;
       public function createXML():void {
        var fileName:String = "component.xml";
                    fileRef = new FileReference();
        fileRef.browse();
       // Draging code ends here
      ]]>
    </mx:Script>
    <mx:Fade id="theEffect"/>
    <mx:HDividedBox width="100%" height="100%">
      <mx:VDividedBox height="100%" width="20%">  
        <mx:Panel title="Drawing Components" width="100%" height="100%" layout="vertical" >
            <mx:Panel title="Nodes" width="100%" height="100%" layout="vertical">
             <mx:Image id="box" toolTip="TwoWay Split" useHandCursor="true" buttonMode="true" source="@Embed(source='images2/box.png')" mouseMove="dragPicture1(event, box, 'box');myoffset(box);" width="28" height="28" x="84" y="6"></mx:Image>
             <mx:Image id="rectangle" toolTip="MultiWay Split" useHandCursor="true" buttonMode="true" source="@Embed(source='images2/rectangle.png')" mouseMove="dragPicture1(event, rectangle, 'rectangle');myoffset(rectangle);" width="28" height="28" x="160" y="10"></mx:Image>
             <mx:Image id="circle" toolTip="Reader" useHandCursor="true" buttonMode="true"  source="@Embed(source='images2/circle.png')" mouseMove="dragPicture1(event, circle, 'circle');myoffset(circle);" width="28" height="28" x="120" y="8"></mx:Image>
             <mx:Image id="line" toolTip="Line" useHandCursor="true" buttonMode="true" source="@Embed(source='images2/line.png')" click="doDrawEnable()" width="28" height="28"  x="279" y="10"></mx:Image>
             <!--<mx:Image id="dottedline" source="@Embed(source='images2/dottedline.png')" click="doDrawEnable()" width="28" height="35"  x="279" y="10"></mx:Image>
             <mx:Label text="Name" x="350" y="10"/>
             <mx:TextInput id="txtInput1" width="50" height="28" x="400" y="10"/>
             <mx:Label text="Value" x="470" y="10"/>
             <mx:TextInput id="txtInput2" width="50" height="28" x="510" y="10"/>-->
            </mx:Panel>
        </mx:Panel>
      </mx:VDividedBox>
      <mx:VDividedBox height="100%" width="60%">
        <mx:HDividedBox width="100%" height="100%">   
         <mx:Canvas width="100%" height="100%" >
          <mx:TabBar x="0" y="10" dataProvider="viewstack1" />
          <mx:ViewStack id="viewstack1" width="100%" height="100%" y="32">
           <mx:Canvas backgroundColor="#ffffff" borderColor="0xB7BABC" borderStyle="solid" borderThickness="7" label="{propValue}" id="designArea" contextMenu="{cm}" dragEnter="pictureDragEnter(event)" dragDrop="pictureDragDrop(event)" width="100%" height="100%" >
           </mx:Canvas>
           <mx:Panel id="pnlXML" label="XML" width="100%" height="100%" showEffect="{theEffect}" >
            <mx:ControlBar width="100%" barColor="#FF22CC">
             <mx:Spacer width="100%"/>
             <mx:Button id="btnSave" label="Save" useHandCursor="true" buttonMode="true" mouseChildren="false" click="createXML()" />    
            </mx:ControlBar>
            <mx:TextArea fontSize="12" wordWrap="false" textIndent="8" id="txtAreaXML" text="{xm}" width="100%" height="100%" editable="false" />       
           </mx:Panel>
          </mx:ViewStack>
         </mx:Canvas>
        </mx:HDividedBox> 
      </mx:VDividedBox>
      <mx:VDividedBox height="100%" width="20%">
       <mx:Panel title="Saved Components and Properties" width="100%" height="100%" layout="vertical" >
        <mx:Accordion id="accrWin" x="51" y="35" width="100%" height="100%">
            <mx:Canvas label="Saved Components" width="100%" height="100%">
             <mx:List height="100%" width="100%" dataProvider="{savedComp}" />        
            </mx:Canvas>
            <mx:Canvas id="accrCon2" label="Properties" width="100%" height="100%">
             <mx:DataGrid id="dgProp" dataProvider="{propData.prop}" height="100%" width="100%" editable="true" itemClick="itemClickEvent(event);">
              <mx:columns>
               <mx:DataGridColumn dataField="@key" headerText="Property" editable="false" />
               <mx:DataGridColumn dataField="propvalue" headerText="Value" editable="true" />                 
              </mx:columns>
             </mx:DataGrid>
            </mx:Canvas>
         </mx:Accordion>
       </mx:Panel>
      </mx:VDividedBox>
    </mx:HDividedBox>
    <mx:ApplicationControlBar dock="true"> 
      <mx:Image source="images/Openfile.gif" toolTip="Open" useHandCursor="true" buttonMode="true" mouseChildren="false" click="createXML()" />
      <mx:Image source="images/Savefile.gif" toolTip="Save" useHandCursor="true" buttonMode="true" mouseChildren="false" click="createXML()" />
      <mx:Image source="images/Undo.gif" toolTip="Undo" useHandCursor="true" buttonMode="true" mouseChildren="false" />
      <mx:Image source="images/Redo.gif" toolTip="Redo" useHandCursor="true" buttonMode="true" mouseChildren="false" />
      <mx:Image source="images/Delete.gif" toolTip="Delete" useHandCursor="true" buttonMode="true" mouseChildren="false" />
      <mx:Image source="images/Print.gif" toolTip="Print" useHandCursor="true" buttonMode="true" mouseChildren="false" />
      <mx:Spacer width="100%" />
      <mx:Label text="BackTesting" fontWeight="bold" fontSize="16" />
    </mx:ApplicationControlBar>
    </mx:Application>
    Plz change my code according to the requirement.
    Thanks

    Could you give us the full source code?
    Thanks!!

  • How to apply sliding panels Spry Widget in Dreamwevaer CS4

    Could someone please share how to apply sliding panels widget in Dreamwevaer CS4 as it is not in insert spry panel?
    Thanks kindly!

    Hi Brad,
    I meant something like this:
    http://labs.adobe.com/technologies/spry/samples/slidingpanels/SlidingPanelsSample2.html
    http://labs.adobe.com/technologies/spry/samples/slidingpanels/SlidingPanelsFromData.html
    or the one used on their site:
    http://labs.adobe.com/technologies/spry/home.html
    Thanks kindly

  • How to refresh the panel's display in listener?

    I have a Jcombobox and a panel(square,background color:white). I want user to choose the panel's size from the combobox and thus change the panel's display. However, when I choose a value from combobox, the panel's size DOES change, but the display cannot be rerfreshed realtimely. It still display the panel by previous size. If I minimize the whole window and restore, then the panel gets refreshed, displaying by new size.
    Can anybody tell me how to refresh the panel's display dynamically? thank you a lot.
    sraiper

    if we bounce the listener the connections to other might be lost.NO!
    The listener contacts the DB to establish the initial connection between client & DB.
    After the connection between DB & client has started, the listener has NO involvement between DB & client.
    Stopping the listener has NO impact on existing sessions.
    Edited by: sb92075 on Jul 28, 2009 4:37 PM

  • How to use Contextual panel ?

    Hi,
    Can u please expalin me what are the properties of contextual panel ? and How to use contextual panel with in Contextual panel?
    Thanks,
    kishore.

    Check out this link
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/01754e5ba20c4be10000000a11466f/frameset.htm

  • How does repaint work?

    Can anybody tell me how does repaint work.

    hmm
    raheel_siddiqi = mraheel.
    Smart way of transferring Dukes (and earning more
    Dukes).
    Irrelevant question asked --> Posted in wrong forum
    --> STOOPID answer given ---> Dukes transferred.Very well pointed.... ;(
    >
    raheel bhai.. yeh baccho ka khel nahi hai :)Well Said :-)

  • Do you know how to create Front Panel like Web,

    Do you know how to create Front Panel like Web, I mean like we pointed the word and click it will do another process instead by clicking push button.
    If possible, i can click the link in the table... Any idea anyone
    Solved!
    Go to Solution.

    Hi ezam,
    can you define more clearly exactly what you would actually like to do, and ill have a further look into it. I think smercurio_fc has understood it as I have, and is right with the activeX.
    any way, give a shout back with exactly what you want to do and we see what we can do,
    Richard
    Richard S
    Applications Engineer
    Certified LabVIEW Associate Developer
    National Instruments UK&Ireland

  • (window/cs6)How to create multiple panel

    Hi all,
    How do I code multiple tabs for plugins?
    But I only create one.And I am a novice in Indesign Plugin Development.
    Thank you very much.And hope you happy everyday.
    your quanfeng.chen

    Hi Manan,
    Thank you very much for your help.  And my idea is wrong.
    Can you tell me how to dock some panels each other? For example,.(Images from Mag +)
    Thank you again,
    your quanfeng.chen

  • How to make front panel as Generic

    Hi all ,
    I need to know that how to do front panel reuse.
    Here i am using two front panel to do some work .
    But both the front panel do the same work ,
    I need to use create one front panel make them as generic .
    I C#  can able to do front panel generic .
    In labview how to do it .
    It helps me lot ..
    Thanks in advance .,
    Attachments:
    fp.vi ‏11 KB

    You can group the controls as a Cluster and make a type-def of it. That's probably what you're after.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • How to make s:Panel middle in Flex4

    When I use <mx:Panel>,I find <mx:Panel> replaced by <s:Panel>.I can make <mx:Panel> middle by using following parameter:
    paddingTop="10"
    paddingLeft="10"
    layout="vertical"
    horizontalAlign="center"
    verticalAlign="middle"
    Then I use <s:Panel>,but I don't know how to make <s:Panel> middle both horizon and vertical. How to do it?
    Thanks.

    Please try:  horizontalCenter="0" in the s:Panel.

  • How to remove back panel., want to  replace harddirve, how to remove back panel., want to  replace harddirve, how to remove back panel., want to  replace harddirve

    how to remove back panel., want to  replace harddirve, how to remove back panel., want to  replace harddirve, how to remove back panel., want to  replace harddirve
    lr45149

    select your iMac from here: http://www.ifixit.com/Browse/iMac_Intel and click on "hard drive replacement" for step by step instruction.

  • How i use multi panel in single applet

    hi master
    sir i need three panel in single applet
    i use this code but not set the panel
    pnl.setBounds(20, 10, 10, 20);
    and
    pnl.setLocation(12, 12);
    and
    pnl.setSize(12, 20);
    this is my class code
    JTable table = new JTable(rdata, columnNames);
    getContentPane().add(table.getTableHeader(),BorderLayout.NORTH);
    getContentPane().add(table);
    JPanel pnl = new JPanel();
    //pnl.setBounds(20, 10, 10, 20);
    //pnl.setLocation(12, 12);
    pnl.setSize(12, 20);
    pnl.add(new JScrollPane(table));
    getContentPane().add(pnl);
    //pnl.setBounds(10, 10, 10, 20);
    please sir give me idea how i use multi panel and how i set panel boundry
    thanking you
    aamir

    http://forum.java.sun.com/thread.jspa?threadID=5118094&tstart=0

  • How to create Contextual Panel?

    Dear Friends..
    I want to make Contextual Panel in WD4A..
    But I don't know..how to create Contextual Panel..
    Please answer me..^^
    Thanks..

    Oh... I'm Sorry.
    I can't write english well..and I can't understand Navigation list and contexual panel.
    So.. I can study that.
    But..
    I make Contextual Panel reference CTX_NAV_PANEL View in WDR_TEST_EVENTS Component.
    'com.lang.abap.sap' line has right arrow just like '>'
    i think.. '>' click then.. another action happens..
    for example.. display sublist..
    'comp.lang.abap.sap.webdynpro'
    'comp.lang.abap.sap.webdynpro.viewdesigner'
    'comp.lang.abap.sap.webdynpro.runtime,X'
    'comp.lang.abap.sap.webdynpro.libraries'
    and so on..
    But nothing happens..
    How can I display sublist..

  • How to embed front panel in FP-2010

    hi
    1. is FP-2010 support "front panel embedding"?
    2. if yes then how?
    regards
    mazhar

    Hello Mazhar,
    Thank you for contacting National Instruments.  If I understand your
    question correctly you would like to know how to utilize front panel
    communication on a Fieldpoint 2010.  If you are just trying to view the
    Front Panel of your Fieldpoint VI on your development computer then you should
    be able to open up the front panel on the development computer and see it
    running.  However, if you are trying to communicate the information from
    the front panel to a non-development machine there are a few different
    methods.  Here is a knowledgebase
    article that explains some of the different methods that you can use. 
    Here is some more information about setting
    up a remote front panel for a Real-Time target executable that also may
    assist you.  Please let me know if you have any further questions or if it
    seems that I do not fully understand your question.  I hope this helps!
    Thanks!
    Bob H
    Applications Engineer
    National Instruments

Maybe you are looking for