I want to reuse DrawPie function to draw 4 same pies, but it was unexpected. I don't understand what have been happening.
I divide the client area by 4, then pass each rect to DrawPie.
I want to reuse DrawPie function to draw 4 same pies, but it was unexpected. I don't understand what have been happening.
I divide the client area by 4, then pass each rect to DrawPie.
...
I mean why must change from MM_TEXT to MM_LOENGLISH or something. Change mapping mode then translate window origin and viewport origin, ...
It is so confusing.
That example code totally doesn't show how to build undo/redo funtionality in styled document because it uses JTextArea. (document of JTextArea is plain)
To undo in styled document, must use...
How to write undo/redo button for below SyntaxDocument? I read whole Chapter "Swing Undo Package" in "Core Swing Advance Programming" book but I still don't know how to do. (It's so difficult)
I'm sorry, I read your reply many times but I still don't understand, so exactly where I should put my disconnectToDatabase()?
I can't put it at the end of my constructor because my class which...
1) I want to disconnect to database in a destructor because my class uses the connection during execution time. Please give me a hand where I should put my...
How to trap right-click + control using masks? I tried but it doesn't work. If I replace BUTTON3_DOWN_MASK with BUTTON1_DOWN_MASK or BUTTON2_DOWN_MASK, it works. Why? I don't understand. @.@
How to trap right-click + control using masks? I tried but it doesn't work. If I replace BUTTON3_DOWN_MASK to BUTTON1_DOWN_MASK or BUTTON2_DOWN_MASK, it works. Why? I don't understand. @.@
Thank...
Hi, I'm trying to do this: "fileMenu" and "popupMenu" use the same menu item, but it didn't show correctly. When I add redMenuItem to popupMenu, redMenuItem disappears in fileMenu.
Please help me....
I'm sorry but I'd like to use regex. Read the topic tittle la. =__=
I think it's ok if I use regex in this case. (shorter and more professional I think)