Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Frame/JFrame maximization problem  RSS feed

 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I am making a JFrame that i want to show maximized and non-resizable at the first time its invoked. For JInternalFrame, setMaximum() works fine. But in Frame/JFrame I forgot :CONFUSED: whether there was any method or constant that makes its size set to maximum, probably something like showMaximized or SHOW_MAXIMIZED. I wanna know the method name.
How can i add an instance of a java bean(a jar file in same directory) to the center panel of my JFrame?

------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JBuilder that you put the dot after instance and a method list is dropped (m.b. it is necessary to compile succesfully before with that instance)...
1)Non-resizable is JDialog ...
2)You may make your own maximize method (anyway, you love overworking, not re-utilizing):

3)Then, might be you would want to switch off LayoutManager that may override/interfere with your efforts

[This message has been edited by G Vanin (edited November 19, 2001).]
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnx G Vanin, exceelnt help indeed!
I'll try them today....and let u know.

------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, did it work? I just snapped it from working (very big) application...
BTW, what a coincidence I also use Windows2000 Adv. Server, bcoz my predecessor installed it and why you use it?
Also I should confess that Bruce Eckel's TIJ is not very good in SWING: neiter for reference nor for introduction.
[This message has been edited by G Vanin (edited November 20, 2001).]
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
G vanin, thank you very much dear friend! Its working exactly in the way i wanted. I forgot the getScreenSize(). Hope your help in the same fashion in future.....

------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ashik,
nice to hear from you. I already started thinking that getScreenSize() formatted your hard disk
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No Vanin. its working fine thanks to you!
But does it makes problems in some situations? Have you any bad experience with that? Then may be i'll not use it in my projects.....

------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Generally not. But IMHO SWING/AWT is the most tricky, buggy, intially prematurely conceptualized and platform-dependent (since have peers) from all of the Java choices. Sometimes the logic is obscure and due to small tricks, it is possible to get around loosing much of time.
It is very hard if you are using custom /company very huge classes for GUI and nobody knows why and who had done them, etc. No documentation. My case. I hope not yours
Just my opinion, I do not like design job. I was some kind of mathematician before.
You have no choice if you have a client and client should have GUI
[This message has been edited by G Vanin (edited November 21, 2001).]
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnx Vanin for ur opine. I'll be careful when using these stuffs....

------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just the common grief http://www.javaranch.com/ubb/Forum24/HTML/013240.html
It is necessary to accept the the facts ASAP ... or some misunderstanding may lead to hours of grief...
I shall have access to Internet inly until 03 Dec. 2001
[This message has been edited by G Vanin (edited November 21, 2001).]
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Generally not. But IMHO SWING/AWT is the most tricky, buggy, intially prematurely conceptualized and platform-dependent (since have peers) from all of the Java choices.


All AWT components have native peers... only a few top-level ( window ) components in Swing have native peers... Most of the bad attributes you listed apply more to AWT than Swing... and Swing and AWT are the only choices to make GUIs in Java... perhaps you didn't mean to include Swing in the "SWING/AWT" comment above...

Sometimes the logic is obscure and due to small tricks, it is possible to get around loosing much of time.


Have you ever programmed using Micro$oft APIs...

It is very hard if you are using custom /company very huge classes for GUI and nobody knows why and who had done them, etc. No documentation. My case. I hope not yours


And why is this the fault of Swing or AWT? Sounds like your company needs to improve their software process. And BTW, you can read or download documentation on all the Java classes ( including Swing and AWT ) on Sun's website.

Just my opinion, I do not like design job. I was some kind of mathematician before. You have no choice if you have a client and client should have GUI


Once again, I ask, have you ever tried to muddle through any Micro$oft APIs? Compared to them even the AWT API is perfect...

You are allowed your opinion, but it doesn't sound like it's based in fact... perhaps just a bad day at the office... Or perhaps all this is directed at the AWT API instead of AWT/Swing lumped together?

-Nate
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nathan,
where have you been so long? I already wanted to phone you...
I did not compare SWING to other areas/technologies of Java not to other tools
 
Guennadiy VANIN
Ranch Hand
Posts: 898
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I worked with Visual Basic (VB), VJ++, VC++ and I consider their GUI, database, network parts much more professional, comfortable
They care (for money). It is better than do not care abt anything
Then it is just market standard. I cannot find any job offer here already 3d month. Should I die from hunger bcoz I forgot VB?

You are allowed your opinion, but it doesn't sound like it's based in fact... perhaps just a bad day at the office...

or night, at the javaranch

[This message has been edited by G Vanin (edited November 22, 2001).]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!