Sitemap

Amicuk Programming Answers

Resize applet - more info

-0001-11-30   Views:0

Advertisement

I want to be more specific: i have a class that extends applet to this class i added two panels. to one of the panels i added 100 buttons, to the other 4 labels. i have also a class that extends frame, in order to run my applet as an application. i a

I want to be more specific: i have a class that extends applet to this class i added two panels. to one of the panels i added 100 buttons, to the other 4 labels.
i have also a class that extends frame, in order to run my applet as an application. i added to this frame my applet, when i create a new instance of the applet the constructor add's all the panels and buttons.
In order that when i resize the frame also the applet including all its panels and buttons will be resized, i added to the frame a componentlistener and called setsize in my applet with the appropiriate dimenstion, it seemd to work, but the panels didnt resize, so i overlapped in my applet the setsize method and added pnael.setsize for the two panels but it still doesnt work.What is the right way to do this??

The replay answer
Advertisement
>
In order that when i resize the frame also the applet
including all its panels and buttons will be resized,
i added to the frame a componentlistener and called
setsize in my applet with the appropiriate dimenstion,you don't need a componentlistener - the LayoutManager of the Frame (a BorderLayout) takes care of the resizing of the applet
it seemd to work, but the panels didnt resize, so i
overlapped in my applet the setsize method and added
pnael.setsize for the two panels but it still doesnt
work.What is the right way to do this??wookash is right, you'll need to set the correct LayoutManager in your applet (its currently a FlowLayout)
I think you should use an GridLayout in the Applet
for example:
myApplet.setLayout(new GridLayout(1,2));
myApplet.add(panel1);
myApplet.add(panel2);

Go to See the other 3 answers

Resize applet within a HTML frame

Category:DefaultRelease time:2015-10-11Views:130

Hi, I am using an applet to display a tree in a HTML frame of a web page. I would like to resize or refresh the applet when the HTML frame is resized. Is there a way for the applet to know when the HTML frame is resized? Any help will be appreciated.[More]

Resize applet - more info

Category:DefaultRelease time:-0001-11-30Views:130

I want to be more specific: i have a class that extends applet to this class i added two panels. to one of the panels i added 100 buttons, to the other 4 labels. i have also a class that extends frame, in order to run my applet as an application. i a[More]

Win98 need to resize applet viewer to see forms client

Category:DefaultRelease time:-0001-11-30Views:130

Is there any work around that will aliviate the problem of needing resize the applet viewr (JInitiator) manually to see the java applet? This is consistent bug and it seems to appear on all of our Win98 clients (WinNT works fine) in both IE 5.0 and N[More]

Resizing Applets

Category:DefaultRelease time:-0001-11-30Views:130

I've another question. I wont be suprised actually if you start ignoring my mails but I'll keep chancing my arm until then. This applet SHOULD create musical sheet music, by selecting keys on a virtualy keyboard or chords from a drop down box. IT WOR[More]

Problem "resizing" applet

Category:DefaultRelease time:-0001-11-30Views:130

Can someone please help me with resizing an applet. I can't figure out how to decrease or increase the applet more than once. If the "smaller" button is clicked, the applet decreases in size only once. If the "bigger" button is clicked[More]

JProgressBar leaves double behind when browser resized (Applet)

Category:DefaultRelease time:-0001-11-30Views:130

I have an applet that runs inside the browser (IE). It has a progress bar. If I initially open the browser without having it maximized, let the applet load and run the program such that the progress bar starts, an then resize the window, the progress[More]

Netscape Window Resize/Applet Reload Problem

Category:DefaultRelease time:-0001-11-30Views:130

Is there anyway to keep a java applet from restarting when a Netscape window is resized? This problem doesn't happen in IE.In my case, someone told me to eliminate in applet's HTML this directives: <META HTTP-EQUIV="Pragma" CONTENT="No-c[More]

Resizing applet

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have an applet which is quite large, when you run the applet using appletviewer it fills the whole screen, this means when I run the applet in an HTML document it is partly obscured and you have to scroll. I know you can size the applet in HTML[More]

CANNOT RESIZE APPLET

Category:DefaultRelease time:2015-10-11Views:130

Hello I was wondering if anyone could tell me why I cannot adjust an applet,sometimes I cannot see things at the bottom of the applet page because it is not long enough but I cannot make it longer to view what is at the bottom because it has no scrol[More]

Resize Applet Window - How?

Category:DefaultRelease time:-0001-11-30Views:130

I know how to set a specific size by numbe for an applet window, but I would like to know if there is a way of telling the applet window to open in full view mode - like instead of saying open (650, 650) in a separate window, I would like it to take[More]

Filling Background for Applet

Category:DefaultRelease time:-0001-11-30Views:130

Hi everyone, I created Applet1 that I just had to fill in the background (blue) of the applet and after resizing the applet by using appletviewer, the applet is still filled entirely with blue. So I use fillRect method with d.width, d.height (Dimessi[More]

Hot
how to change background color in photoshop cs3 Please help me...Background for what? You need to explain better and be more specific. MyleniumRead other 2 answers [More]
I am attempting to move the SAP B1 application to a different server (pointing to the same database server). In doing so I have been told I needed to request a new license key.  I have done that however when I try to import the license key into the S [More]
Hi Friends, while posting down payment through F-47. I am getting following error Special G/L indicator R is not defined for down payments But when i checked in table T074U, i find SGL 'R' for 'K' Kindly suggest me......... MunenderHi for vendor Down [More]
I am trying to see if there is a way to use the number pad as a calculator and add figures then enter into a cell for further use.  I want to eliminate the use of my adding machine if possible and just use my keyboard to do my additions and enter dir [More]
Dear Experts, In User Defined Field -1 can we define our own values, so that for this field we can make drop down selection, instead of manual entry. Facility seems to be available, as it shows balloon there. But no values of cource. Is it possible? [More]
Hi I have written a small application that can post files via a http request. It all works fine. But now i would like to monitor the progress of this fileupload. How do i do this. I have tried using all sorts of outputstreams but i can only seem to g [More]
I am trying to email straight from a pdf document using pdf reader and am getting operation failed. This is only happening with one of my users.I have a user who was emailed a pdf file, he opens in Adobe reader and clicks on the envelope to email it. [More]
I am trying to import mp3's into a Captivate 3 presentation but keep getting this error "Unable to decode and import the selected wav/mp3 file." I am using the same mp3 files that I have used many times with projects in Cap1 and Cap2. I have con [More]
I have created a 'mobileme album' from an album in iphoto. However when i add a new photo to the 'iphoto album' it does automatically sync into the 'mobileme album'. Should this happen or do i need to recreate the mobileme album every time?DRL Welcom [More]
I have iPhoto set up to use GMail for both my email account and my wife's. My contacts show up for auto typing just fine but when my wife tries to use her GMail account her auto typing will only access contacts from my account and not hers. Any ideas [More]
Highlighted

    Database error: [Table 'ac_posts' is marked as crashed and should be repaired]

    SELECT * FROM ac_posts WHERE `ID` IN (689213,4352958,4300907,5184296,5141466,4306765,2274770,3409083,4198563,5037988,1365229,4496836,4921771,3084918,600447,2937838,2372839,4840292,374748,488039,2623891) LIMIT 10;