Click here to Skip to main content
15,892,253 members
Home / Discussions / Java
   

Java

 
AnswerRe: File Explorer Pin
TorstenH.1-Nov-11 21:41
TorstenH.1-Nov-11 21:41 
GeneralRe: File Explorer Pin
David Skelly1-Nov-11 23:33
David Skelly1-Nov-11 23:33 
GeneralRe: File Explorer Pin
TorstenH.1-Nov-11 23:57
TorstenH.1-Nov-11 23:57 
GeneralRe: File Explorer Pin
David Skelly2-Nov-11 2:57
David Skelly2-Nov-11 2:57 
GeneralRe: File Explorer Pin
HTT902-Nov-11 6:23
HTT902-Nov-11 6:23 
Questionjava image processing Pin
sagar lachure31-Oct-11 19:41
sagar lachure31-Oct-11 19:41 
AnswerRe: java image processing Pin
Richard MacCutchan31-Oct-11 22:41
mveRichard MacCutchan31-Oct-11 22:41 
QuestionJPanel drawing issues Pin
ExoticmE30-Oct-11 21:35
ExoticmE30-Oct-11 21:35 
Hi all, here's a kinda bullet-pointy explanation of what i have

- I have a simple JFrame
- I create a JPanel called 'ContentPane'

Java
contentPane = new JPanel();
contentPane.setBackground(SystemColor.window);
contentPane.setBorder(new LineBorder(SystemColor.inactiveCaption));
contentPane.setLayout(null);
setContentPane(contentPane);


- the JFrame has a
JMenuBar -> JMenuBar -> JMenuItem

- The JMenuItem has a MouseListener and a override to 'mouseReleased'
- Inside mouseReleased i call

Java
TestPanel p = new TestPanel(null, new Vector2(12, 12));

contentPane.add(p);


- TestPanel extends a JPanel, and ha some simple text boxes and labels in it which are created in its constructor, super(); is called.

- When the event is fired it creates a TestPanel but it is tiny, about an inch long and 5 mm in height, it should be much much bigger.

- If I move the call to instance the TestPanel outside of the event (so the TestPanel is instanced on load) it is drawn fine.

Why does the event effect it in this way ?

Thanks,

Stu.
AnswerRe: JPanel drawing issues Pin
Richard MacCutchan30-Oct-11 23:57
mveRichard MacCutchan30-Oct-11 23:57 
GeneralRe: JPanel drawing issues Pin
ExoticmE31-Oct-11 0:05
ExoticmE31-Oct-11 0:05 
AnswerRe: JPanel drawing issues Pin
TorstenH.1-Nov-11 21:56
TorstenH.1-Nov-11 21:56 
QuestionJava drawString Pin
Tor Danielsen26-Oct-11 8:07
Tor Danielsen26-Oct-11 8:07 
AnswerRe: Java drawString Pin
Manfred Rudolf Bihy26-Oct-11 9:21
professionalManfred Rudolf Bihy26-Oct-11 9:21 
GeneralRe: Java drawString Pin
Tor Danielsen26-Oct-11 11:06
Tor Danielsen26-Oct-11 11:06 
GeneralRe: Java drawString Pin
bennis9826-Oct-11 18:09
bennis9826-Oct-11 18:09 
GeneralRe: Java drawString Pin
TorstenH.26-Oct-11 20:49
TorstenH.26-Oct-11 20:49 
GeneralRe: Java drawString Pin
Tor Danielsen27-Oct-11 4:34
Tor Danielsen27-Oct-11 4:34 
GeneralRe: Java drawString Pin
Richard MacCutchan27-Oct-11 5:00
mveRichard MacCutchan27-Oct-11 5:00 
GeneralRe: Java drawString Pin
Tor Danielsen27-Oct-11 5:05
Tor Danielsen27-Oct-11 5:05 
GeneralRe: Java drawString Pin
phil.o27-Oct-11 5:31
professionalphil.o27-Oct-11 5:31 
GeneralRe: Java drawString Pin
Richard MacCutchan27-Oct-11 5:45
mveRichard MacCutchan27-Oct-11 5:45 
GeneralRe: Java drawString Pin
Tor Danielsen27-Oct-11 8:08
Tor Danielsen27-Oct-11 8:08 
GeneralRe: Java drawString Pin
phil.o30-Oct-11 23:13
professionalphil.o30-Oct-11 23:13 
QuestionHow to develop server with threads and store in txt file Pin
Member 834295426-Oct-11 4:51
Member 834295426-Oct-11 4:51 
AnswerRe: How to develop server with threads and store in txt file Pin
Richard MacCutchan26-Oct-11 5:06
mveRichard MacCutchan26-Oct-11 5:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.