Steve Clark

Greenhorn
+ Follow
since Feb 26, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Steve Clark

Paul Clapham wrote:Sure, I will move it back to the Applets forum. You seem to get distracted by irrelevancies, though... would it be fair to say your question is "How can an applet find out the size of the browser it's running in"? (After all you're going to use the same method to find the browser's size regardless of whether the applet has been resized lately or not.)



My applet can changed size when the font is changed. So the browser need change to correct size to fit the applet.
12 years ago

Paul Clapham wrote:So would it be correct to say that your question is "What is the Javascript code which allows me to resize the browser window?"

Hopefully there isn't any -- I set my browser window the way I like it and I don't want your code messing with that -- but at any rate that question doesn't seem to be related to applets in any way. So let's move it to the Javascript forum. But if it turns out I have completely misinterpreted your question, just post a clarification and we'll move it again, if necessary.



I think it is a applet problem. The problem here is how to caculate the brower's size when the applet is resized.
Maybe there are some better solutions don't need call javascript function.
Can I post this problem in both html and applet forums.
12 years ago
I think it is a applet problem. The problem here is how to caculate the brower's size when the applet is resized.

Maybe there are some better solutions don't need call javascript function.
12 years ago
I know how to call a javascript function in Java. But I don't how to write this js function.
12 years ago
JSP
I know how to call a javascript function in Java. But I don't how to write this js function.
12 years ago

Steve Clark wrote:If there are too many items in JMenu, some of them will disappear. They won't show them in multiple columns like windows.

Now I am using springlayout and calculate rows and rols by items' size. I made the items be showed in multiple columns. But the order is from left to top not vertical like normal menu from top to bottom.

Is there a layout can let items in this order? Boxlayout Y_AXIS is vertical but can I make it multiple columns?



solved by myself!

I studied all of the layouts. I almost gave up. Then I found all I need do is modify the SpringUtilities.makeCompactGrid method.
13 years ago
If there are too many items in JMenu, some of them will disappear. They won't show them in multiple columns like windows.

Now I am using springlayout and calculate rows and rols by items' size. I made the items be showed in multiple columns. But the order is from left to top not vertical like normal menu from top to bottom.

Is there a layout can let items in this order? Boxlayout Y_AXIS is vertical but can I make it multiple columns?
13 years ago
I have a VERTICAL splitpane, it include 2 scrollpanes and 1 JPanel.

I want to a scrollBar of one scrollpane to control the other 2 panes at the same time.

if moving the scrollBar , then the whole splitpane move together.
15 years ago