An electronic device comprising an internal component, a frame configured for receiving said internal component, a housing comprising a display, said housing at least partially enclosing said frame and said internal component along a longitudinal axis of said electronic device, at least one end cap configured to engage with an open end (4a, 4b) of said housing, said open end (4a, 4b) extending perpendicular to said longitudinal axis, connection means configured to connect said end cap rigidly with said frame and resiliently with said internal component, said connection means comprising a female part and a male part, said female part being arranged at least partially between said frame and said internal component in the direction of said longitudinal axis, said female part comprising a first opening, said frame comprising a second opening, and said end cap comprising a third opening, said first opening, said second opening, and said third opening being aligned and configured to receive said male part, said male part being configured to engage at least one of said first opening, said second opening, and said third opening wherein said male part is fixed in position, in relation to said frame, along said longitudinal axis, said female part comprising at least one tongue configured to engage with a surface of said internal component, wherein said internal component is displaceable in relation to said frame in at least a direction perpendicular to said longitudinal axis, said end cap comprising an antenna part and a nonconductive part, said nonconductive part separating said antenna part from said frame, said connection means being conductive and extending from said antenna part to said internal component. an internal component, a frame configured for receiving said internal component, a housing comprising a display, said housing at least partially enclosing said frame and said internal component along a longitudinal axis of said electronic device, at least one end cap configured to engage with an open end (4a, 4b) of said housing, said open end (4a, 4b) extending perpendicular to said longitudinal axis, connection means configured to connect said end cap rigidly with said frame and resiliently with said internal component, said connection means comprising a female part and a male part, said female part being arranged at least partially between said frame and said internal component in the direction of said longitudinal axis, said female part comprising a first opening, said frame comprising a second opening, and said end cap comprising a third opening, said first opening, said second opening, and said third opening being aligned and configured to receive said male part, said male part being configured to engage at least one of said first opening, said second opening, and said third opening wherein said male part is fixed in position, in relation to said frame, along said longitudinal axis, said female part comprising at least one tongue configured to engage with a surface of said internal component, wherein said internal component is displaceable in relation to said frame in at least a direction perpendicular to said longitudinal axis, said end cap comprising an antenna part and a nonconductive part, said nonconductive part separating said antenna part from said frame, said connection means being conductive and extending from said antenna part to said internal component.