Solved

Look and Feel on Windows and Solaris

Posted on 1998-11-16
3
289 Views
Last Modified: 2013-12-05
The applet that I developed uses awt components and Symantec components. The Look and feel varies depending on the client OS. On windows NT/95 it looks good. On Unix machines, the text in the Textfield control looks truncated. I have treid with different fonts with no use. On a 14' monitor the vertical and horizontal scroll bar appears. How can I eliminate this.
0
Comment
Question by:ruks
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

by:ruks
ID: 1227546
This is urgent, any suggestions are welcome
0
 
LVL 7

Expert Comment

by:conick
ID: 1227547
do you specify the # of columns in your textfield?
either with setColumns() or in the constructer?
if you dont try explicitly setting those...
so it should behave in the same way on both machines
0
 
LVL 3

Accepted Solution

by:
mjenkins earned 100 total points
ID: 1227548
The easy answer is to use Swing components and the Java (Metal) look and feel. This will require the use of the java plug-in as well, but that gives you assurance that the applet will run anywhere.

Alternatively, you can try to fiddle with the AWT controls. One way to get the textfield components to size appropriately is to initialize the textfield with all W's. For example, if you have a textfiled that is supposedto be 5 chars wide initialize it to "WWWWW" and then reset it to "     " after the layout has been called. 'W' is generally the widest chatacter in a variable font set.

I hope this helps.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question