Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > Look and Feel in the Designer
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 3rd July 17:41
steve
External User
 
Posts: 1
Default Look and Feel in the Designer



How about the the design window reflecting the currently chosen look and
feel? It seems to choose the platform look and feel regardless of what's
chosen in the code. This makes it hard to design to anything other than the
platform look and feel, since you have to keep jumping back and forth
between the designer and runtime. Thx.

-Steve
  Reply With Quote


 


2 3rd July 17:41
gillmer j. derge \(teamb\)
External User
 
Posts: 1
Default Look and Feel in the Designer



If you right click in the Designer, there is a menu that lets you change
the look and feel. This is explained in more detail in the help files.
Look in the index for "look and feel / design time."

--
Gillmer J. Derge (TeamB)
  Reply With Quote


 


3 3rd July 17:42
steve
External User
 
Posts: 1
Default Look and Feel in the Designer


Well that's just too simple. ;-) Thanks.

BTW, I've read that the Borland L&F is not redistributable. Any idea what's
it's doing there? I mean what's the point of using the look and feel only in
the Designer? Thx.

-Steve
  Reply With Quote
4 3rd July 17:42
gillmer j. derge \(teamb\)
External User
 
Posts: 1
Default Look and Feel in the Designer


I'm sure it's just a side-effect of the way the menu is created. They
probably display any look and feel that's known to the UIManager. In
order to exclude it from that menu, they'd need to hardcode a special
rule for the Borland look and feel. Might not be a bad idea though.

--
Gillmer J. Derge (TeamB)
  Reply With Quote
5 3rd July 17:43
jennifer ashley kuiper
External User
 
Posts: 1
Default Look and Feel in the Designer


I mean what's the point of using the look and feel only in


Well, it looks neat, dunnit? They have used the same L&F in both C++BuilderX
and JBuilder X. Look at it this way, you can't use the L&F of M$ Outlook in
your own apps either, now can you? (Hmmm... bad example)
Besides, you can hack it:
import com.borland.primetime.*;
import com.borland.plaf.borland.*;
import javax.swing.UIManager;
public static void main(String[] args)

{

try

{

BorlandLookAndFeel borland = new BorlandLookAndFeel();

borland.setCurrentTheme(new BorlandTheme());


UIManager.setLookAndFeel("com.borland.plaf.borland .BorlandLookAndFeel");

}

catch(Exception e)

{

e.printStackTrace();

}
  Reply With Quote
6 3rd July 17:43
lori m olson (teamb)
External User
 
Posts: 1
Default Look and Feel in the Designer


Of course you can hack it. There have been numerous postings on how to
do so. But the license agreement prohibits you from re-distributing the
jar file containing the Borland Look and Feel with your application, so
there's not much point is there?

--

Regards,

Lori Olson (TeamB)
  Reply With Quote
7 3rd July 17:43
jennifer ashley kuiper
External User
 
Posts: 1
Default Look and Feel in the Designer


Sure, and of course I will never violate any such agreement. I just always
want to know how to get things done.

Regards,
Jenny
  Reply With Quote
8 23rd July 21:32
robert klinkenberg
External User
 
Posts: 1
Default Look and Feel in the Designer


Depends. In many countries Shrink Wrap and Click wrap licenses are legally
questionable or simply illegal. In those countries people can (more or less)
legally break the license agreements as long as they don't break the law. As
the jar file is probably copyrighted,you still can't distribute it but in
other cases there is a distinct difference between what you are legally
allowed to do and what the license agreement states. So, the license
agreement isn't really worth the paper it's written on and you shouldn't
base your decision on what that license agreement says but on the law of the
country or countries you are working in and sell your software. A bit more
work but it can be rewarding. It can also get you into a courtroom as
companies tend to defend their license agreements. However, in most cases
they will probably ignore you or try to settle with you as they definately
can not afford to lose a case about their license agreement.

Robert
  Reply With Quote
Reply


Thread Tools
Display Modes




666