¡@

Home 

java Programming Glossary: mycomponent

how to find source component that generated a DocumentEvent

http://stackoverflow.com/questions/5218731/how-to-find-source-component-that-generated-a-documentevent

if arg0.getSource instanceof MyComponent MyComponent comp MyComponent arg0.getSource comp.callSpecificMethodUponMyComp.. if arg0.getSource instanceof MyComponent MyComponent comp MyComponent arg0.getSource comp.callSpecificMethodUponMyComp.. if arg0.getSource instanceof MyComponent MyComponent comp MyComponent arg0.getSource comp.callSpecificMethodUponMyComp The answser..

Swing HTML drawString

http://stackoverflow.com/questions/7774960/swing-html-drawstring

to draw a HTML string here's a sample code public class MyComponent extends JComponent public MyComponent super protected void.. code public class MyComponent extends JComponent public MyComponent super protected void paintComponent Graphics g some drawing..

Drawing rectangle on a JPanel

http://stackoverflow.com/questions/9258890/drawing-rectangle-on-a-jpanel

JFrame.EXIT_ON_CLOSE getContentPane .add new MyComponent setSize 400 400 setVisible true public class MyComponent extends.. MyComponent setSize 400 400 setVisible true public class MyComponent extends JComponent @Override public void paint Graphics g .. 249 19 height width But getContentPane .add new MyComponent Instead of this statement I need to add one base panel to the..