import javax.swing.JFrame; public class Frame extends JFrame{ private JPanel panel; public Frame(){ super(); initialize(); } private void initialize() { this.setName("ABC"); this.setLocation(0, 10); this.setSize(990, 750); this.setTitle("abc"); this.setContentPane(this.getPanel()); } protected JPanel getPanel() { if (panel == null) { panel = new JPanel(); JLabel lblTest = new JLabel("lala"); panel.add(lblTest); } panel.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentResized(java.awt.event.ComponentEvent e) { // abc } }); return panel; } }
protected JPanel getPanel() { if (panel == null) { panel = new JPanel(); JLabel lblTest = new JLabel("lala"); panel.add(lblTest); panel.addComponentListener(new java.awt.event.ComponentAdapter() { public void componentResized(java.awt.event.ComponentEvent e) { // abc } }); } return panel; }
Is it possible to get it working without touching the code? We've got a lot of legacy code that isn't even ours and we can't check and update a thousand panels.
org.eclipse.wb.internal.core.model.variable.LazyVariableSupportUtils.getInformation(MethodDeclaration)
Is it possible to get it working without touching the code? We've got a lot of legacy code that isn't even ours and we can't check and update a thousand panels.