How do i display an ArrayLists data in GUI?

Hey
Im trying to make a calendar and it works as it is suppose to with System.print.ln(), but now i want to get it you the GUI. How do i this?
My best quess is to pass the ArrayList to the GUI and then loop through the ArrayList in the GUI. After this i dont know what i to do. I want to put the data from the ArrayList, which is all the days in a month (for example 1-31 or 1-30) into labels.
Any suggentions to this?
Here is the code that i have tried with:
Makes the ArrayList:
public void showCalendarMonth(int year, int month, int daysInMonth){
        calendarMonth = new ArrayList<String>();
        for(int i = 1 ; i <= daysInMonth; i++)
            if(bookingList.checkDate(year, month, i) == "B"){
                calendarMonth.add("B"+i);
            }else{           
                calendarMonth.add(i);
public ArrayList<String> getCalendar(){
        return calendarMonth;
    }GUI:
public void makeCalendar(int year, int month, int daysInMonth){
        ArrayList<String> calendarArray = calender.getCalendar();
        for(String day : calendarArray){
            final String label = day;
            JButton button = new JButton(label);
            panel.add(button);
    }This gives me the following error:
Exception in thread "main" java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String

I think this will solve your problem.
public void makeCalendar(int year, int month, int daysInMonth){
        ArrayList<String> calendarArray = calender.getCalendar();
        for(String day : calendarArray){
            final String label = (String)day;
            JButton button = new JButton(label);
            panel.add(button);
    }

Similar Messages

  • How we will display the header data and item data seperately in lists

    how we will display the header data and item data seperately in lists

    REPORT z_alv_list_block.
    TYPE-POOLS: slis. " ALV Global types
    SELECTION-SCREEN :
    SKIP,
    BEGIN OF LINE,
    COMMENT 5(27) v_1 FOR FIELD p_max. "#EC NEEDED
    PARAMETERS p_max(2) TYPE n DEFAULT '02' OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    DATA:
    1st Table
    BEGIN OF gt_kna1 OCCURS 0, " Data displayed
    kunnr LIKE kna1-kunnr, " Customer number
    ernam LIKE kna1-ernam, " Name of Person who Created
    erdat LIKE kna1-erdat, " Creation date
    name1 LIKE kna1-name1, " Name 1
    END OF gt_kna1,
    2nd Table
    BEGIN OF gt_mara OCCURS 0,
    ernam LIKE mara-ernam, " Name of Person who Created
    matnr LIKE mara-matnr, " Material number
    ersda LIKE mara-e rsda, " Creation date
    brgew LIKE mara-brgew, " Gross weight
    END OF gt_mara,
    3rd Table
    BEGIN OF gt_vbak OCCURS 0,
    vkorg LIKE vbak-vkorg, " Sales organization
    kunnr LIKE vbak-kunnr, " Sold-to party
    vbeln LIKE vbak-vbeln, " Sales document
    netwr LIKE vbak-netwr, " Net Value of the Sales Order
    waerk LIKE vbak-waerk, " SD document currency
    END OF gt_vbak.
    INITIALIZATION.
    v_1 = 'Maximum of records to read'.
    START-OF-SELECTION.
    Read data
    SELECT * FROM kna1
    UP TO p_max ROWS
    INTO CORRESPONDING FIELDS OF TABLE gt_kna1.
    SELECT * FROM mara
    UP TO p_max ROWS
    INTO CORRESPONDING FIELDS OF TABLE gt_mara.
    SELECT * FROM vbak
    UP TO p_max ROWS
    INTO CORRESPONDING FIELDS OF TABLE gt_vbak.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
    EXPORTING
    i_callback_program = sy-cprog
    i_callback_user_command = 'USER_COMMAND'.
    PERFORM list_append TABLES gt_kna1
    USING '1'
    'GT_KNA1'.
    PERFORM list_append TABLES gt_mara
    USING '2'
    'GT_MARA'.
    PERFORM list_append TABLES gt_vbak
    USING '3'
    'GT_VBAK'.
    PERFORM f_list_display.
    FORM USER_COMMAND *
    FORM user_command USING i_ucomm LIKE sy-ucomm
    is_selfield TYPE slis_selfield. "#EC CALLED
    CASE i_ucomm.
    WHEN '&IC1'. " Pick
    CASE is_selfield-tabname.
    WHEN 'GT_MARA'.
    WHEN 'GT_KNA1'.
    WHEN 'GT_VBAK'.
    READ TABLE gt_vbak INDEX is_selfield-tabindex.
    IF sy-subrc EQ 0.
    Sales order number
    SET PARAMETER ID 'AUN' FIELD gt_vbak-vbeln.
    Display Sales Order
    CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
    ENDIF.
    ENDCASE.
    ENDCASE.
    ENDFORM. " USER_COMMAND
    ----< /div>
    Form list_append
    FORM list_append TABLES ut_table
    USING u_no TYPE char1
    u_tabname TYPE slis_tabname.
    Macro definition
    DEFINE m_fieldcat.
    ls_fieldcat-fieldname = &1.
    ls_fieldcat-ref_tabname = &2.
    append ls_fieldcat to lt_fieldcat.
    END-OF-DEFINITION.
    DEFINE m_sort.
    ls_sort-fieldname = &1.
    ls_sort-up = 'X'.
    append ls_sort to lt_sort.
    END-OF-DEFINITION.
    DATA :
    ls_fieldcat TYPE slis_fieldcat_alv,
    lt_fieldcat TYPE slis_t_fieldcat_alv, " Field catalog
    ls_sort TYPE slis_sortinfo_alv,
    lt_sort TYPE slis_t_sortinfo_alv. " Sort table
    DATA:
    lt_events TYPE slis_t_event,
    ls_event TYPE slis_alv_event,
    ls_layout TYPE slis_layout_alv.
    ls_layout-group_change_edit = 'X'.
    ls_layout-colwidth_optimize = 'X'.
    ls_layout-zebra = 'X'.
    ls_layout-detail_popup = 'X'.
    ls_layout-get_selinfos = 'X'.
    ls_layout-max_linesize = '200'.
    CASE u_no.
    WHEN '1'.
    Build field catalog and sort table
    m_fieldcat 'KUNNR' 'KNA1'.
    m_fieldcat 'ERNAM' 'KNA1'.
    m_fieldcat 'ERDAT' 'KNA1'.
    m_fieldcat 'NAME1' 'KNA1'.
    m_sort 'KUNNR'.
    WHEN '2'.
    m_fieldcat 'MATNR' 'MARA'.
    m_fieldcat 'ERNAM' 'MARA'.
    m_fieldcat 'ERSDA' 'MARA'.
    m_fieldcat 'BRGEW' 'MARA'.
    m_sort 'MATNR'.
    WHEN '3'.
    m_fieldcat 'VBELN' 'VBAK'.
    m_fieldcat 'VKORG' 'VBAK'.
    m_fieldcat 'KUNNR' 'VBAK'.
    m_fieldcat 'NETWR' 'VBAK'.
    m_fieldcat 'WAERK' 'VBAK'.
    m_sort 'VBELN'.
    ENDCASE.
    IF u_no CA '13'.
    MOVE 'TOP_OF_PAGE' TO ls_event-name.
    CONCATENATE 'TOP_OF_PAGE' u_no INTO ls_event-form.
    APPEND ls_event TO lt_events.
    ELSE.
    MOVE 'TOP_OF_LIST' TO ls_event-name.
    CONCATENATE 'TOP_OF_LIST' u_no INTO ls_event-form.
    APPEND ls_event TO lt_events.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
    EXPORTING
    it_fieldcat = lt_fieldcat
    is_layout = ls_layout
    i_tabname = u_tabname
    it_events = lt_events
    it_sort = lt_sort
    i_text =
    TABLES
    t_outtab = ut_table
    EXCEPTIONS
    program_error = 1
    maximum_of_appends_reached = 2
    OTHERS = 3.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " LIST_APPEND
    Form f_list_display
    FORM f_list_display.
    DATA ls_print TYPE slis_print_alv.
    ls_print-no_print_selinfos = 'X'. " Display no selection infos
    ls_print-no_print_listinfos = 'X'. " Display no listinfos
    ls_print-reserve_lines = 2. " Lines reserved for end of page
    CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
    EXPORTING
    i_interface_check = ' '
    is_print = ls_print
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " F_LIST_DISPLAY
    FORM top_of_page1 *
    FORM top_of_page1. "#EC CALLED
    PERFORM top_of_page.
    ENDFORM.
    FORM top_of_page3 *
    FORM top_of_page3. "#EC CALLED
    PERFORM top_of_page.
    ENDFORM.
    FORM top_of_page *
    FORM top_of_page.
    ULINE.
    WRITE : sy-uname, sy-title(56) CENTERED, sy-datum.
    ULINE.
    ENDFORM.
    FORM top_of_list2 *
    FORM top_of_list2. "#EC CALLED
    WRITE 'TOP OF LIST2'.
    ENDFORM.
    END OF PROGRAM Z_ALV_LIST_BLOCK ***********************

  • How do I display today's date and a date 1 month from today in livecycle designer

    Hello,
    Does anyone know how to display a future dates in 3 date fields that would be 1 month; 2 months and 3 months from today?
    I am making a sales contract form and in a date field is today's date (which can be altered if the user needs to change it).  The javascript I have is:
    if 
    (this.rawValue == null){
    var  
    msNow = (new Date()).getTime();
    var  
    d1 = new Date(msNow); this.rawValue
    = util.printd("mmm/dd/yyyy", d1);}
    else  
    { this.rawValue
    = rawValue;
    Then in the next date field i need to display the date 1 month from today
    The third date field 2 months from today
    the fourth date filed 3 months from today.
    Any suggestions would be greatly appreciated.

    Hi Peter,
    If you need to be more exact than adding 30 days then you can use the following code;
    function 
    addMonth(date){
      var year = date.getFullYear();  
      var month = date.getMonth();  
      var day = date.getDate();  month= (month % 12) + 1;  year
    += parseInt(month / 12); 
      var days = daysInMonth(month, year);  
      if (day > days)  {
        day= days;   }
      return new Date(year, month, day);}
     function  daysInMonth(iMonth, iYear){
      return 32 - new Date(iYear, iMonth, 32).getDate();}
    You need to pass in a Date object to addMonth so (assuming DateTimeField1 is your date field);
    NextMonth.rawValue= util.printd("mmm/dd/yyyy", addMonth(
    = util.printd("mmm/dd/yyyy", addMonth(
    Date.parse(DateTimeField1.formattedValue));
    Bruce

  • How can I display the CREATED date of an acrobat file in Windows Explorer (Win 7)?

    I want to display the Created date is shown in Document Properties in Windows Explorer, here's the field I want to see in Explorer:

    Try this pdf file, the help file from this page:
    https://helpx.adobe.com/acrobat.html
    Download this file and see what you see in Windows Exploer
    http://helpx.adobe.com/en/pdf/acrobat_reference.pdf
    Compare dates on the Internal Acrobat Properties and those displayed in Windows Explorer:
    Here's what Windows Says:

  • How do I display a null date field?

    We've converted a couple of million records from and old system into UCM and a lot of dates were null. These display as 1/1/53 (01-Jan-1753) and the requirements is to display spaces. This sounds so simple but I can't think of how to do it and can't find it documented in the forum anywhere. Any ideas?
    Bill

    Let me clarify. We have already performed the migration to UCM and the problem is that a lot of the dates are being displayed as 1/1/1753. My understanding is that this is because the date is null in the database and the users want to display them as null/blank/spaces instead of 1/1/53 because they think 1/1/53 looks ugly.
    Bill

  • How can I display more graph data than will fit into memory?

    I'd like to graph more data than will fit into my computer's memory on a LabVIEW graph or some other LabVIEW control. In the past I've hacked this with the 2D Picture Control. LabVIEW would read through the huge file one chunk of manageable memory at a time and fill in the appropriate pixels in the 2D Picture Control as it read through the file.
    Is there a better way?

    Looks like mikeporter has done most of the heavy lifting for you in his excellent article.
    If the data will not fit in memory then you have little choice other than reading chunks at a time from file. I would probably so something like:
    Decide how much you want to work with at a time (say 1 MSamples). If your selected 'dataset' zoom level is 'all data' then you will have to read in all the file piecewise, decimate the data, and build up your 1MSamples array. You can then use the LabVIEW graph to zoom in and out and scroll that set of samples. This gives you some limited 'live' functionality on the decimated dataset, and means you don't have to read from the file every time you scroll or zoom.
    Then if you want to examine part of the data more closely, you need to change the 'dataset' zoom level to 'just these 100Msamples' (say). Re-read just that section of the file, decimate as needed, and display. As your 'dataset' of interest becomes smaller you will need to decimate less until you can just read sample for sample.
    These two levels of 'zoom' - a macro 'dataset' selected from the overall data, and the native graph zoom and scroll, should give a balance of usability without having to constantly read from file as you move around small sections of the data.
    Sorry I don't know of any existing code (though I'm sure someone has done it before!) - if you do implement something like this then maybe you could share

  • How can I display only the Data Logging pull down menu on my LV front panel?

    Is it possible to hide all unused pull down menu on my front panel vi like File, Edit, View etc.. and only
    display the pull down menu for the Data logging?!
    best regards
                          Norick

    Hey,
    You can build your own runtime menu (Edit>runtime menu) and then e.g. only display the application items you want to.
    Christian

  • How can I display a JPG Date Taken stamp on images?

    I have several digital JPG images taken that I would like to pull EXIF data from to display a timestamp on the photo.  I know many old cameras used to do this natively, but my iPhone does not imprint the date and time on the images.  I want to pull the data from the JPG so it will display the correct info on the image for when the picture was taken.  Any help is appreciated.  I own Adobe Web Premium CS5.
    Thanks, Bryan

    If the EXIF metadata is in the jpeg you can do what you want using a photoshop script retrieve the date and time in matadata and add a text layer containing a timestamp. Here is an example where more then just the timestamp was stamped onto an image. http://www.mouseprints.net/old/dpr/StampExif.jsx

  • Displaying real-time data using gui meter from multiple channels.

    I am using DAQ USB-6009 for my assignment. Part of my task is to display real-data from multiple channels in the form of gui meters.  eg. irradiance and voltage...
    I used a split signal to separate the signals from different channels coming out of the data output terminal of the DAQ assistant. The problem is that I do not know which vi to connect in between the split signal and the gui meter. I am looking for one vi that is capable of handling signals (measurement)  and outputting the data to the gui meters simultaneously and individually based on the channel they are coming from.

    Thnx for your tip, Dennis.
    However, I have another problem that just occurred to me when my VI manages to execute as I wanted.
    I noticed that the needle on my gui meter will only "appears" to be responding to every changes to its input when I have set it to run continuously and the only way to stop it is via abortion which might leave the resources (eg. external hardware) in unknown state. Is there any safer and workable ways to organise the VIs using while loop?
    I have placed my DAQ assistant, write to measurement file (vi), add function, split signal and gui meters all in 1 single while loop.
        DAQ-------> write to measurement file
                 |
                 |                                                 ​                   |--------------------------------> add function----> gui meters
                 ---------------------------------------------> split signals ---|--------------------------------> add function----> gui meters
                                                      ​                                |--------------------------------> add function----> gui meters
    If I do the following steps,
    1. press run continuously to start the VI
    2. click the same button to disable continuous run when the VI has completed its task.
    3. click the stop button in the front panel to stop the while loop
    Does doing these steps ensure that I will not leave resources in unknown state? Is it a safer way to stop a VI which is running continuously?
    Pardon me for I am new to LabView. Even though, I have read the user's
    manual and tried out all the execises, there are some concepts that I
    need clarification on and mistakes that I need to discover through more hands-on.

  • How do i display an image on a GUI?

    I am making a GUI, and I was trying to post an image(s) on it. I tried various things including turning it into an applet and using the paint(Graphics g) method, but it didn't show up.
    Thanks!

    calm down chief, these people work for a living. They will get to you. Here is a GUI that I did a while ago that has images in it. Maybe it will help you. Let me know.
    import java.awt.*;
    import javax.swing.*;
    public class NestedPanels {
        public static void main(String[] args){
            ImageIcon pic1 = new ImageIcon("nasa1.jpg");
            ImageIcon pic2 = new ImageIcon("nasa2.jpg");
            ImageIcon pic3 = new ImageIcon("nasa3.jpg");
            ImageIcon pic4 = new ImageIcon("whale.jpg");
            JFrame frame = new JFrame("Nested Panels");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //first subpanel
            JPanel subPanel1= new JPanel();
            subPanel1.setPreferredSize(new Dimension(600,600));
            subPanel1.setBackground(Color.white);
            JLabel label1 = new JLabel ("pic one",pic1,0);
            JLabel label2 = new JLabel("pic two",pic2,0);
            subPanel1.add(label1);
            subPanel1.add(label2);
            //second subpanel
            JPanel subPanel2 = new JPanel();
            subPanel2.setPreferredSize(new Dimension(600,600));
            subPanel2.setBackground(Color.white);
            JLabel label3 = new JLabel("pic three",pic3,0);
            JLabel label4 = new JLabel("pic four",pic4,0);
            subPanel2.add (label3);
            subPanel2.add(label4);
            //primary panel
            JPanel primary = new JPanel();
            primary.setBackground(Color.white);
            primary.add(subPanel1);
            primary.add(subPanel2);
            frame.getContentPane().add(primary);
            frame.pack();
            frame.setVisible(true);          
    }You gotta make sure that the pics are in the same folder ok bud?

  • How to display an HTML data which contains images in CR

    Hi Experts,
    I have a HTML file which contains images and text. I will store all this data in to the database as binary data(SQL server 2008). How can I display the whole  data in report.
    Thanks in advance,
    Salah

    hello all,
    most times when HTML is stored in a database there are many tags that will not work. the tags that will work are very basic and limited to the formatting types that you can do within a Text Object...so not much.
    if you need all of the HTML from a database interpreted, you need to activate pass-through html on your system. then if you put the field into a formula (one line in height) the HTML should be properly displayed. for more info on activating pass-through html see the beginning of the Users Guide for webelements that is in the main download [here|Crystal Reports webElements].
    please note that there are some major limitations in this method:
    1) you cannot print the html displayed when using the print button on the crystal reports toolbar as it will show up as text...you can try the browsers print functionality to see if that works for you
    2) you can not export the report and see the html displayed...it will show up as text
    3) pagination may not work for you...i.e. if you have an especially long section of html in your database, the page may not break where you want it to
    best of luck,
    jamie

  • Display Current/System date in the Query

    Hi,
    Can any one tell me how i can display the current date or system date in Bex Query/report. I tried to use "0DAT" SAP exit as the key date in the "General Properties"... this helps me to execute query based on a Key date, but does not display the date. Can any one tell me, how I can use the current date in my query for some calculations and how I can display the current date.
    Thanks

    Hi Tanu
    If you want to see the query run date along witn query properties in the report output ( after you execute the report).. then go to "Layout".. (please check for Icons) >display text elements> all. ( This is if you are in BW 3.5).. if you are in BI 7.0, then simplay click on information and you will see all the details
    I see you are asking for some calcuation's also.. for that you should see what date fields you have in the backend cube/dsou2026
    Hope this helps
    Thanks
    Kalyan

  • Display the workitem in Web GUI Homepage

    Hi Experts,
    How can I display the workitem in Web GUI Homepage?
    I created a workflow and it is sending a workitem but I can' see the workitem sent to my Web GUI homepage.
    Thanks in advance,
    james
    Moderator message: please have a look in the dedicated Workflow forum.
    Edited by: Thomas Zloch on Jan 20, 2011 3:55 PM

    Hi James,
    First of all, i would like to know whether you can see the workitem in SAP Business workplace (GUI) ?
    If yes, then you would find one of my article which would make an interesting reading and would help you in your query.
    [SAP Business Workplace Vs SAP CRM WebUI Worklist|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0c2ff2f-d6ef-2d10-5885-d989e034feac]
    Regards,
    Anand

  • How to display previously entered data in TableModel

    This post is continued from the last one. I was having problem displaying previously entered data into TableModel. someone suggested whether my TableModel is persistent.
    I am sorry to say I am not sure how to make TableModel persistent. Can someone tell me what to do.
    Following is my implementation of TableModel:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import java.util.*;
    import java.io.*;
    public class UsersModel implements TableModel {
    public static final String[] colNames ={
    "Usernmae",
    "Location"
    public static final Class[] colClasses ={
    String.class,
    String.class,
    public static final int
    USERNAME_COL = 0,
    LOCATION_COL = 1;
    //used to hold a list of TableModelListeners
    protected java.util.List tableModelListeners = new ArrayList();
    protected java.util.List data = new ArrayList();
    public static void main(String []args){
    new UsersModel();
    }//end main
    public UsersModel(){
    public void add(Users u){
    data.add(u);
    and when I need to add new users, I do it in the following way:
    Users u= new Users(n,l);
                        model.add(u);
                                  table.setModel(model);
    I hope someone can help

    Please post the entire class, this certainly won't compile because it does not implement all the TableModel methods. Also, why not base it off of AbstractTableModel?

  • How can I display data gathered in a subVI in a graph of the main VI?

    I have written a largish application (~50 VI's) which acquires, analyzes, display and saves data from an instrument with a built-in DAQPad. My problem is that my block diagram is rather messy by now. I'm using an event structure in my main VI which reacts to buttons being pressed on the front panel. During data acquisition (one frame of the event structure), I need to do a lot of data processing, and I'm displaying both raw data and analyzed data on the front panel. I'm using a lot of subVI's for this, but I always need to get data out of the subVI's again to display it on the front panel, cluttering my block diagram. It would be much nicer if the subVI could update the main VI's graphs and indicators. I just found two examples with control references which show how a subVI can modify e.g. a 3Dgraph of the main VI, but I'm unable to use this with normal graphs and charts - I can't find a way to update the actual data in the plots (I can scale the plot or color it blue etc - but I really want to change the data it's displaying, not color it blue). Is there anything I'm missing? Is there example code for this kind of problem?
    best regards
    Martin

    im assuming that you want to update your graphs and indicators as you are performing your DAQ, otherwise, you can pass out your value/s when the DAQ completes.
    I have attached a very simple example of using a reference to update your front panel graph.
    Hope this helps.
    Attachments:
    Reference Example(LV7.1).zip ‏17 KB

Maybe you are looking for

  • RFC Error While Invoking A Remote Function Module.

    I am invoking A remote function module while invoking it get  an exception when i see the error logs com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException:      Screen output without connection to user.                           , er

  • Does new type of unit testing in Flash Builder4 support ANT task ?

    Hi, I am using the new way of creating unit tests following this page http://help.adobe.com/en_US/flashbuilder/using/WS27ECA937-059A-4308-A2E2-F3A3AAB64337.html #WSF04FE993-D0BA-4a2b-BDF1-8B8ABF22E448, which is really easier and more efficient than o

  • A problem to have a secure link to itunes store

    hi guys i have a problem with my iphone 3gs i just unlocked my thru at&t but in order to complete the process i have to restore my phone i did resore it like few times and just keep stucking at the activation point and everytime i connect it to the i

  • Link between PR and Dep rqmt

    Hi All, I have a PR and want to know from which dep rqmt was that resulted, is there any tables where it can be checked. I've tried in RESB, RSDB and EBAN but not able to find. Kindly help me out. Thanks & Regards, Jagadeesh.

  • New website broken in IE

    Can somebody look at this site in IE and almost any other browser, and recommend some First Aid for the content pages? www.gmavt.net/~powerdog Pages should look OK in other browsers, but in IE all the hidden elements are visible and moved to the wron