Does Java Swing use native OS GUI?
-
I know that Swing is platform independent. But JFrame running on Windows is different from one running on Mac OS or Linux. E.g. Windows has the standard red X close button, and Mac OS has those colorful circles. So, why doesn't JFrame have its own Look-and-Fell like other Swing components? Is it because it uses AWT to communicate with native OS GUI? If so, why isn't JFrame an AWT component? I am sorry if I am asking a stupid question, I am only a beginner... Thanks:)
-
Answer:
One way or another, everything has to work on the OS it's being executed in. In windows you need a window to get a canvas (device context) to draw on.The other buttons are probably using windows functions on windows (namely the windows gdi) to draw stuff too. I don't think it's a big issue, and it's certainly not a stupid question.
ironvita... at Yahoo! Answers Visit the source
Related Q & A:
- How to program java GUI?Best solution by Yahoo! Answers
- What framework must I use to develop mobile native application?Best solution by Stack Overflow
- How can I mount a network drive in Mac OS X in Java?Best solution by Stack Overflow
- Why cannot we use static keyword inside a method in java?Best solution by Stack Overflow
- What rope should I use for a rope swing?Best solution by lowes.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.