summaryrefslogtreecommitdiff
path: root/bean
diff options
context:
space:
mode:
Diffstat (limited to 'bean')
-rw-r--r--bean/com/sun/star/comp/beans/OOoBean.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/bean/com/sun/star/comp/beans/OOoBean.java b/bean/com/sun/star/comp/beans/OOoBean.java
index 964ff80ed08e..36d622dc3b7b 100644
--- a/bean/com/sun/star/comp/beans/OOoBean.java
+++ b/bean/com/sun/star/comp/beans/OOoBean.java
@@ -102,7 +102,9 @@ public class OOoBean
Neither a connection is established nor any document loaded.
*/
public OOoBean()
- {}
+ {
+ setLayout(new java.awt.BorderLayout());
+ }
// @requirement FUNC.CON.MULT/0.3
/** Constructor for an OOoBean which uses a specific office connection.
@@ -120,6 +122,7 @@ public class OOoBean
public OOoBean( OfficeConnection iConnection )
throws NoConnectionException
{
+ setLayout(new java.awt.BorderLayout());
try { setOOoConnection( iConnection ); }
catch ( HasConnectionException aExc )
{ /* impossible here */ }
@@ -1305,11 +1308,6 @@ xLayoutManager.showElement("private:resource/menubar/menubar");
// Helper Methods / Internal Methods
- // general instance intializer
- {
- setLayout(new java.awt.BorderLayout());
- }
-
@Deprecated
@Override
public void paint( java.awt.Graphics aGraphics )