Skip to content

Commit 33e0741

Browse files
committed
corrected some warnings and making some privacy saner
1 parent a1273d3 commit 33e0741

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ase.consumer/src/main/java/ase/consumer/internal/Activator.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ public void stop(BundleContext context) throws Exception {
4343
}
4444

4545
private class MainFrame extends JFrame {
46-
private MainFrame() throws HeadlessException {
47-
setLayout(new BoxLayout(getContentPane(), 1));
46+
private static final long serialVersionUID = 1651531688775745704L;
47+
48+
public MainFrame() throws HeadlessException {
49+
setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS));
4850
}
4951

50-
private void addMyComponent(final JComponent component) {
52+
public void addMyComponent(final JComponent component) {
5153
SwingUtilities.invokeLater(new Runnable() {
5254
@Override
5355
public void run() {
@@ -58,7 +60,7 @@ public void run() {
5860

5961
}
6062

61-
private void removeMyComponent(final JComponent component) {
63+
public void removeMyComponent(final JComponent component) {
6264
SwingUtilities.invokeLater(new Runnable() {
6365
@Override
6466
public void run() {

0 commit comments

Comments
 (0)