Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2711 > unrolled thread
| Started by | "kkrish" <kkrish@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:40 +0000 |
| Last post | 2011-04-27 15:40 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.java.gui
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: finding memory requir "kkrish" <kkrish@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
Re: finding memory requir "Lew" <lew@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
| From | "kkrish" <kkrish@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:40 +0000 |
| Subject | Re: finding memory requir |
| Message-ID | <1194008593.189316.225200@d55g2000hsg.googlegroups.com> |
To: comp.lang.java.gui
On Nov 2, 5:37 pm, "Andrew Thompson" <u32984@uwe> wrote:
> kkrish wrote:
>
> ..
>
> > I have an application in Java Swing that has around 40
> >Jpanels
>
> Did you mean javax.swing.JPanel?**
>
> I am unfamiliar with any 'Jpanel' or 'Jpanels'.
>
> > ..with equal number of images ...
>
> All specified by the program, or the user?*
>
> >..on them and each panel will have
> >some other components also.
>
> Limit the memory, until it runs out, for a rough idea.
> Also, jconsole that comes with the SDK, offers a
> basic view into the memory used by an app.
>
> >..I want ton find the amount of RAM the
> >application requires to run and also the memory requirement of each
> >JPanel and its components. How to find the memory requirement?
>
> * How long is a piece of string?
> A lot of this depends on the size of the images.
>
> >How can I make sure that the application will never run out of memory
> >(out of memory exception )?
>
> What is an 'out of memory exception'? I've struck
> 'OutOfMemoryError's** in applications before, but I
> have never seen one of those.
>
> ** This is programming, so please be very specific
> and accurate.
>
> --
> Andrew Thompsonhttp://www.athompson.info/andrew/
>
> Message posted via JavaKB.comhttp://www.javakb.com/Uwe/Forums.aspx/java-gui/200711/1
Thanks.
I meant javax.swing.JPanel only. I have a JFrame and on it a
1024x768 image will be displayed, and a JPanel with 5 JButtons , two
JLabels will be added to the JFrame. When the user presses a JButton,
the image will be changed programmatically, and the JPanel will be
replaced by another JPanel with a different set of JButtons(5 again)
and JLabels.
I want to know, how to find the amount of memory for a JPanel
with 5 JButtons and 2 JLabels.
Thanks in advance.
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [next] | [standalone]
| From | "Lew" <lew@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:40 +0000 |
| Message-ID | <vvydnVefwN_otrbanZ2dnUVZ_tbinZ2d@comcast.com> |
| In reply to | #2711 |
To: comp.lang.java.gui "Andrew Thompson" wrote: >> Limit the memory, until it runs out, for a rough idea. >> Also, jconsole that comes with the SDK, offers a >> basic view into the memory used by an app. kkrish wrote: > I want to know, how to find the amount of memory for a JPanel > with 5 JButtons and 2 JLabels. Yes, yes, we got that. Did you try Andrew's advice? -- Lew --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.gui
csiph-web