Relative Resizing issues

Hi I started with java a few weeks back and I am really getting into using swing to make my problems.
I've got the hang of GUIs for the most part but I've been having difficulty with the TextAreas and the sizing of panels
1) My TextArea problem:
When the user writes into the TextArea and the text becomes wider than the textfield's specified size, the textarea gets wider, rather than the words wrapping onto the next line as I would like. Additionly when the Tab key is pressed, a tab is inserted into the text, rather than the cursor moving to the next text field (as I would like)
2) My panel size problem
I have been using the GridBagLayout for the layout of my GUIs and it works great except my panels size themselves to the objects inside them, and the objects inside them change size quite often, this means the wondow is constantly resizing itself. Is there any way of making the panels fixed at a certain size?
3) One other thing that came up is can you make a window un-resizable so that users can't maximise and minimise it?
I know these problems seem a bit basic but I have looked around and I think they are just overlooked as "too obvious" by most people!!
Thanks
James

Read the docs, most of this stuff is well commented in the swing API javaDocs.
1) setLineWrap()
2) don't pack() your Frame, instead set it to a size larger enough for your components. That way if the components resize, the frame won't. This is not a clean solution BTW
3) setResizable(), setUndecorated();
have fun using swing to SOLVE your problems

Similar Messages

  • Please help-Trying to compress to Mpeg-2 for Convention, also resizing issues

    Hello,
    I just recently finished making an AMV in Adobe Premiere 5.5, and I am having trouble trying to figure out how to compress it into an Mpeg-2 source for a competition/convention.
    I also have these massive black borders on the side of my video that I know is probably due to improper resizing on my part, and although I have tried to remedy this with a new avisynth script of the exported uncompressed AVI (before compressing to MPEG-2), whenever I try to run the avisynth script in either VirtualDubMod or TMPGEnc (the converting program recommended by: http://www.animemusicvideos.org/guides/mpegforcons/) it crashes, although the original video does work.
    This is the avisynth script I have created for the post-video:
    FFVideoSource("C:\Users\Freeman\Desktop\Fight the Power.avi")
    FFCopyrightInfringement("C:\Users\Freeman\Desktop\Fight the Power.avi")
    AssumeFPS("23.976")
    SSRC(48000)
    LanczosResize(720,352)
    AddBorders(0,64,0,64)
    per the recommendations from the guide listed below
    I do not know if the resizing I have set up in the new avisynth script will fix my resizing issues, and I would like to improve that as much as possible, so if someone could clarify for me, that would be greatly appreciated.
    You may also notice some audio issues throughout the video, however on further playback this never appears to happen in the same place. I believe this is caused by poor audio quality, and I have a friend of mine working on setting up a lossless source that I will try to recompress with the video before friday, however if someone else might know what is causing this, any advice would be greatly appreciated.
    Here is the current MPEG-2 I have, however for obvious reasons, I do not consider it acceptable as of yet:
    http://www.megaupload.com/?d=IIKYWRXF
    The original export from Premiere is Microsoft AVI Uncompressed, and then attempted to convert to MPEG-2 (I tried multiple settings, they all have the same sizing issues), and as I said before, no matter what I try to do with the avisynth script, it crashes.
    I have even tried taking out every line from the new avisynth script except for the first two detailing the location of the video and audio, however this does nothing, it still crashes.
    I had to convert all my original source avisynth scripts to AVI files (that are massive, as I am editing from 52 episodes of Fullmetal Alchemist: Brotherhood), and so editing the original scripts is impossible at this point, because to my knowledge, that would mean I would have to reconvert them all to AVI, which took over 16 hours, and then that would probably make me have to re-edit this entire video (which if you look at it, based on length and how much work I've put into it: is impossible, especially given the time constraints).
    So anything that I can do to fix this will have to be done to the export from Premiere, unless there is a way to work with the AVI's that I made from the avisynth scripts.
    The source is primarily 16:9 DVD (Fullmetal Alchemist) and very few parts from a 4:3 DVD (Naruto). (You can recognize these parts in the video, it is whenever someone is rowing in a boat during the lyrics "Row Row")
    The avisynth script for all the fullmetal alchemist DVD's is as follows:
    mpeg2source("F:\DVD RIPS\Music Video Rips\Brotherhood\Disc 1 (1-7)\MainMovie\FMA_BROTHERHOOD_P1_D1\FMAB 1-7.d2v", cpu=4)
    ConvertToYV12()
    Spline36Resize(848,480)
    #TTempSmooth()
    FastLineDarkenMod()
    LSFmod(strength=120)
    LUTDeRainbow()
    And the avisynth script for the one Naruto DVD is as follows:
    mpeg2source("F:\DVD RIPS\Music Video Rips\Random\Row Row\MainMovie\ROW ROW\VTS_01_1.d2v")
    TFM()
    TDecimate()
    Spline36Resize(848,636)
    Crop(0,78, 0,-78)
    These recommendations came from what I could figure out from:
    http://www.animemusicvideos.org/guides/avtech31/
    If anyone is curious, the song is "Libera me from Hell", and it is 44100 from what I could tell when I ran it in WINAMP (I converted it from mp3 to wav through WINAMP, if there is a better way that I am unaware of, please let me know).
    I know this is extremely long, and thank you anyone who has taken their time to look through it, it is greatly appreciated.
    The deadline for this is friday (5/20/11), so I need help with this ASAP and thanks,
    Dexter

    Dexter,
    Those "black borders," if they are visible in the Program Monitor, are most likely due to a mis-match between the Source Files and the Sequence Preset.
    If they are only showing up upon Export, then there is likely a mis-match between your Sequence and your Export, and could be either with the Aspect Ratio, or if using non-square pixels, the PAR (Pixel Aspect Ratio).
    I'll defer any commens on AVISynth to the experts here.
    Good luck,
    Hunt

  • Batik-related compiler issue

    <div class=Section1><br /><br /><p class=MsoNormal>I received this error calling the flex2.tools.Compiler&#8217;s<br />main[] method.  The MXML input compiles successfully in the Flex 2<br />builder.  I wanted to check to see if anyone had experienced this before<br />digging deeper into source code.<o:p></o:p></p><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal>--Scott<o:p></o:p></p><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal>------------------------------------------------------------------------- ----------------------<o:p></o:p></p><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>Error:<br />org.apache.batik.css.parser.Parser.getLineNumber()I</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New"'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>java.lang.NoSuchMethodError:<br />org.apache.batik.css.parser.Parser.getLineNumber()I</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flash.css.StyleParser.getLineNumber(</span><u><span style='font-size:10.0pt;<br />font-family:"Courier New";color:navy'>StyleParser.java:208</span></u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:red'>)</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flash.css.StyleDocumentHandler.startFontFace(</span><u><span style='font-size:<br />10.0pt;font-family:"Courier New";color:navy'>StyleDocumentHandler.java:100</span></u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:red'>)</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />org.apache.batik.css.parser.Parser.parseFontFaceRule(</span><u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:navy'>Parser.java:484</span></u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:red'>)</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />org.apache.batik.css.parser.Parser.parseStyleSheet(</span><u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:navy'>Parser.java:224</span></u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:red'>)</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at flash.css.StyleParser.init(</span><u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:navy'>StyleParser.java:172</span></u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:red'>)</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flash.css.StyleParser.&lt;init&gt;(</span><u><span style='font-size:10.0pt;<br />font-family:"Courier New";color:navy'>StyleParser.java:106</span></u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:red'>)</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flash.css.StyleSheet.parse(</span><u><span style='font-size:10.0pt;font-family:<br />"Courier New";color:navy'>StyleSheet.java:54</span></u><span style='font-size:<br />10.0pt;font-family:"Courier New";color:red'>)</span><span style='font-size:<br />10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flex2.compiler.mxml.analyzer.SyntaxAnalyzer.parseStyle(</span><u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:navy'>SyntaxAnalyzer.java:551</span></u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:red'>)</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flex2.compiler.mxml.analyzer.SyntaxAnalyzer.analyze(</span><u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:navy'>SyntaxAnalyzer.java:122</span></u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:red'>)</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flex2.compiler.mxml.dom.StyleNode.analyze(</span><u><span style='font-size:<br />10.0pt;font-family:"Courier New";color:navy'>StyleNode.java:50</span></u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:red'>)</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flex2.compiler.mxml.dom.AnalyzerAdapter.traverse(</span><u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:navy'>AnalyzerAdapter.java:172</span></u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:red'>)</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flex2.compiler.mxml.dom.AnalyzerAdapter.analyze(</span><u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:navy'>AnalyzerAdapter.java:164</span></u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:red'>)</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flex2.compiler.mxml.analyzer.SyntaxAnalyzer.analyze(</span><u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:navy'>SyntaxAnalyzer.java:55</span></u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:red'>)</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flex2.compiler.mxml.dom.Node.analyze(</span><u><span style='font-size:10.0pt;<br />font-family:"Courier New";color:navy'>Node.java:47</span></u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:red'>)</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flex2.compiler.mxml.InterfaceCompiler.parse1(</span><u><span style='font-size:<br />10.0pt;font-family:"Courier New";color:navy'>InterfaceCompiler.java:222</span></u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:red'>)</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flex2.compiler.mxml.Compiler.parse1(</span><u><span style='font-size:10.0pt;<br />font-family:"Courier New";color:navy'>Compiler.java:95</span></u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:red'>)</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flex2.compiler.API.parse1(</span><u><span style='font-size:10.0pt;font-family:<br />"Courier New";color:navy'>API.java:2306</span></u><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>)</span><span style='font-size:10.0pt;<br />font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flex2.compiler.API.parse1(</span><u><span style='font-size:10.0pt;font-family:<br />"Courier New";color:navy'>API.java:2259</span></u><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>)</span><span style='font-size:10.0pt;<br />font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flex2.compiler.API.batch2(</span><u><span style='font-size:10.0pt;font-family:<br />"Courier New";color:navy'>API.java:367</span></u><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>)</span><span style='font-size:10.0pt;<br />font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flex2.compiler.API.batch(</span><u><span style='font-size:10.0pt;font-family:<br />"Courier New";color:navy'>API.java:1108</span></u><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>)</span><span style='font-size:10.0pt;<br />font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flex2.compiler.API.compile(</span><u><span style='font-size:10.0pt;font-family:<br />"Courier New";color:navy'>API.java:1281</span></u><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>)</span><span style='font-size:10.0pt;<br />font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flex2.compiler.API.compile(</span><u><span style='font-size:10.0pt;font-family:<br />"Courier New";color:navy'>API.java:1201</span></u><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>)</span><span style='font-size:10.0pt;<br />font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flex2.tools.Compiler.mxmlc(</span><u><span style='font-size:10.0pt;font-family:<br />"Courier New";color:navy'>Compiler.java:240</span></u><span style='font-size:<br />10.0pt;font-family:"Courier New";color:red'>)</span><span style='font-size:<br />10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />flex2.tools.Compiler.main(</span><u><span style='font-size:10.0pt;font-family:<br />"Courier New";color:navy'>Compiler.java:53</span></u><span style='font-size:<br />10.0pt;font-family:"Courier New";color:red'>)</span><span style='font-size:<br />10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;<br />font-family:"Courier New";color:red'>      at<br />net.sf.jasperreports.export.flex.JRSwfExporter.exportReportToStream(</span><u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:navy'>JRSwfExporter.java:268</span></u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:red'>)</span><span<br />style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";<br />color:red'>      at net.sf.jasperreports.export.flex.JRSwfExporter.exportReport(</span><u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:navy'>JRSwfExporter.java:177</span></u><span<br />style='font-size:10.0pt;font-family:"Courier New";color:red'>)</span><o:p></o:p></p><br /><br /></div>

    Would you provide some details on how you’re calling this, which branch (e.g. Compiler is now known as Mxmlc on the trunk)? You need to have all libs from trunk/lib on the classpath.
    - Jono
    From: chauncy <[email protected]>
    Reply-To: <[email protected]>
    Date: Thu, 17 Apr 2008 10:31:31 -0700
    To: <[email protected]>
    Subject: Batik-related compiler issue
    A new discussion was started by chauncy in
    Developers --
      Batik-related compiler issue
    I received this error calling the flex2.tools.Compiler’s main[] method.  The MXML input compiles successfully in the Flex 2 builder.  I wanted to check to see if anyone had experienced this before digging deeper into source code.
    --Scott
    Error: org.apache.batik.css.parser.Parser.getLineNumber()I
    java.lang.NoSuchMethodError: org.apache.batik.css.parser.Parser.getLineNumber()I
          at flash.css.StyleParser.getLineNumber(
    StyleParser.java:208
          at flash.css.StyleDocumentHandler.startFontFace(
    StyleDocumentHandler.java:100
          at org.apache.batik.css.parser.Parser.parseFontFaceRule(
    Parser.java:484
          at org.apache.batik.css.parser.Parser.parseStyleSheet(
    Parser.java:224
          at flash.css.StyleParser.init(
    StyleParser.java:172
          at flash.css.StyleParser.<init>(
    StyleParser.java:106
          at flash.css.StyleSheet.parse(
    StyleSheet.java:54
          at flex2.compiler.mxml.analyzer.SyntaxAnalyzer.parseStyle(
    SyntaxAnalyzer.java:551
          at flex2.compiler.mxml.analyzer.SyntaxAnalyzer.analyze(
    SyntaxAnalyzer.java:122
          at flex2.compiler.mxml.dom.StyleNode.analyze(
    StyleNode.java:50
          at flex2.compiler.mxml.dom.AnalyzerAdapter.traverse(
    AnalyzerAdapter.java:172
          at flex2.compiler.mxml.dom.AnalyzerAdapter.analyze(
    AnalyzerAdapter.java:164
          at flex2.compiler.mxml.analyzer.SyntaxAnalyzer.analyze(
    SyntaxAnalyzer.java:55
          at flex2.compiler.mxml.dom.Node.analyze(
    Node.java:47
          at flex2.compiler.mxml.InterfaceCompiler.parse1(
    InterfaceCompiler.java:222
          at flex2.compiler.mxml.Compiler.parse1(
    Compiler.java:95
          at flex2.compiler.API.parse1(
    API.java:2306
          at flex2.compiler.API.parse1(
    API.java:2259
          at flex2.compiler.API.batch2(
    API.java:367
          at flex2.compiler.API.batch(
    API.java:1108
          at flex2.compiler.API.compile(
    API.java:1281
          at flex2.compiler.API.compile(
    API.java:1201
          at flex2.tools.Compiler.mxmlc(
    Compiler.java:240
          at flex2.tools.Compiler.main(
    Compiler.java:53
          at net.sf.jasperreports.export.flex.JRSwfExporter.exportReportToStream(
    JRSwfExporter.java:268
          at net.sf.jasperreports.export.flex.JRSwfExporter.exportReport(
    JRSwfExporter.java:177
    View/reply at Batik-related compiler issue
    <http://www.adobeforums.com/webx?13@@.59b50561>
    Replies by email are OK.
    Use the unsubscribe
    <http://www.adobeforums.com/webx?280@@.59b50561!folder=.3c060fa3>  form to cancel your email subscription.

  • Has the wallpaper resizing issue been fixed for iOS7?

    When I upgraded to iOS7, I immediatley downgraded back to iOS6 because I was unable to resize my wallpaper picture and I didn't care for the new look. Does anyone know if the resizing issue has been fixed???

    You mean for the Lock Screen, how it won't let you shrink it?
    No, that issue still exists in 7.0.3.

  • Help on font sizes and browser resizing issues

    When browsers resize the text, they can have a significant impact on the my designs. I am using CSS positioning, and not tables. I am also using relative font sizes, usually ems. I can get everthing to look right on my pages when the browsers are set at the normal or medium text size. But, i run into problems when the browser is set at the large or largest text size. I need help dealing with this issue in general. But, here's an example that best illustrates the problem:
    I set some white-colored text on a dark background in a  banner at set at 800px x 50px. The font size is set at 1 ems. The background color for the rest of the page is white. So, when the white-colored text fits easily within the banner, everything works okay. But, when the browser resizes the text, the white text flows beyond the dark background color of the banner and becomes invisible on the white background of the page. Is there some way to use margins, padding, or line size to manage this type of situation?
    What are the best tactics to use regarding font size when using CSS positioning ?
    Thanks for any help on this question.

    Thank you for your prompt response. I will put my page on a test server when I can. But, for now, here is my code below.
    I get your point about flexibility.The question is how? What are the best approaches to use?  I have the sense that more experienced designers have some conventional tactics for ensuring the pages read reasonably well even when the text size is enlarged in the browsers, but I am not sure what approach might work in general.
    Part of the issue with this particular design is that I am actually using a background image in the header/banner. And it has a set height:51 px. I don't want it to repeat it vertically whenever someone enlarges the text size in their browser.
    Again, I would appreciate any help offered.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body,td,th {
         font-family: Arial, Helvetica, sans-serif;
         font-size: 1em;
    body {
         margin-left: 0px;
         margin-top: 0px;
         margin-right: 0px;
         margin-bottom: 0px;
         background-color: #000000;
    #Container {
         height: 600px;
         width: 800px;
         margin-right: auto;
         margin-left: auto;
         background-color: #FFFFFF;
    #Banner {
         width: 800px;
         background-image: url(images/800x51bluebackgroundbanner.jpg);
         background-repeat: repeat-x;
         background-position: left top;
         height: 51px;
    #astandardlink {
         font-family: Arial, Helvetica, sans-serif;
         font-size: 1em;
         color: #333399;
         text-align: left;
    #FlashArea {
         float: left;
         height: 400px;
         width: 800px;
    #leftBlock {
         font-family: Arial, Helvetica, sans-serif;
         font-size: 0.8em;
         color: #000000;
         text-align: justify;
         float: left;
         width: 58%;
         margin-right: 1%;
         margin-left: 1%;
         line-height: 1.5;
    #rightBlock {
         font-family: Arial, Helvetica, sans-serif;
         font-size: 0.8em;
         color: #000000;
         text-align: justify;
         float: right;
         margin-right: 1%;
         margin-left: 1%;
         width: 32%;
         clear: right;
         line-height: 1.5;
    #Logo {
         text-align: left;
         vertical-align: middle;
         float: left;
         margin-right: 1em;
    #Bannertext {
         font-family: Arial, Helvetica, sans-serif;
         font-size: 0.8em;
         color: #FFFFFF;
         text-align: center;
         float: left;
         width: 30%;
         line-height: 3;
         white-space: normal;
         display: block;
    #Email {
         font-family: Arial, Helvetica, sans-serif;
         font-size: 0.8em;
         color: #FFFFFF;
         text-align: right;
         margin-right: 0.3em;
         line-height: 1.5;
         background-repeat: no-repeat;
         background-position: left top;
         margin-bottom: 1%;
         padding-bottom: 1%;
    .imageleft {
         vertical-align: middle;
         float: left;
         clear: left;
         margin-right: 1em;
    a:link {
         color: #FFFFFF;
         text-decoration: none;
    a:visited {
         text-decoration: none;
         color: #FFFFFF;
    a:hover {
         text-decoration: underline;
         color: #CC0000;
    a:active {
         text-decoration: none;
         color: #FFFFFF;
    -->
    </style>
    </head>
    <body>
    <div id="Container">
       <div id="Banner">
         <div class="imageleft" id="Logo"><a href="pricinginfo.html"><img src="images/Logo177x51.jpg" alt="Darragh Logo" width="177" height="51" border="0" usemap="#Map" /></a>
    <map name="Map" id="Map"><area shape="rect" coords="8,7,166,41" href="pricinginfo.html" alt="Darragh Logo" />
    <area shape="rect" coords="167,39,168,53" href="#" /></map></div>
         <div id="Bannertext">wines to savor with family and friends </div>
         <div id="Email"><a href="mailto:Darragh Cellars, Proprietor, Andrew Aitken [email protected]">Darragh Cellars, Proprietor, Andrew Aitken [email protected]</a></div>
       </div>
       <div id="FlashArea"><img src="" alt="" name="FlashArea" width="800" height="400" id="FlashArea" style="background-color: #CCCCCC" /></div>
       <div id="leftBlock">Darragh Cellars produces boutique wines that express a balance between earth and fruit. Our wines are crafted to provide a rich wine experience for all palates.- Proprietor, Andrew Aitken Produced &amp; Bottled ByCRUSHPAD San Francisco, CA www.crushpadwine.com </div>
       <div id="rightBlock"><a href="pricinginfo.html" id="astandardlink">Reservations & Contact Information</a>: Darragh Cellars offers an extremely limited supply of Pinot Noir and Chardonnay vintage wines. Reservations may be placed directly with Proprietor Andrew Aitken. </div>
    </div>
    </body>
    </html>

  • Photoshop CS6: Save for Web Automatic Resize Issue

    Some my .psd files (CS6 Photoshop, MAC OSX 10.7.5, Processor: 2.5 GHz Intel Core i7) automatically resize to a percentage. I can't figure out what the cause is, and it will not allow me to change it back to 100% to slice out images for web.
    File Type is .psd - RGB 8 bit/color
    Fie Dimensions are 1400px by 10,800px.
    File Size is 60MB
    The file is extremely slow to open and adjust anything within the file as well, not sure if the issue is related.
    I am working off of my desktop not off of a server.
    Attached is the save for web issue.

    I have the exact same issue, just on certain files?
    I have to 'save as' instead of 'Save for Web'?
    What causes this to happen?? I also have the preview window displaying a gif when I've got the PNG option selected???

  • Resizing issue with login boxes in Captivate 5

    Hi
    I am recording a software simulation where the user has to enter their login detail in a demonstration.
    I have to record it fullscreen (1152 X 864) and then resize it to 750 x 545. That works fine but when I view the resized slides the typed information (login and password) have not shifted relative to the login box and so appears as a field half way down the page instead of inside the box(s).
    Has anyone experienced this and is there something I can do apart from recording in 750 x 545 (not ideal as half the login page is cut off) or leaving the whole thing at the higher resolution (when published it means the user will have to scroll to view the entire slide so not ideal either).
    I have done it many times in Captivate 4 and it works fine.
    thanks

    Hello,
    This is a known issue and the Adobe Team is working on it, this is what I read in this thread:
    http://forums.adobe.com/thread/754748?tstart=0
    Lilybiri

  • [CS2 Mac] Text resize issue

    Hello,<br /><br />My plugin is iterating text runs to modify font size by a given scale factor.<br /><br />My code works fine for all text runs BUT the first one. <br /><br />The problem with the first text run is quite weird since InDesign is actually diplaying the new font size value in its toolbar but the related text is not resized accordingly within the text frame: it's displayed with the former font size - only the first text run (all others are fine). . .<br /><br />I must be missing something important in here: I am pasting my code below - thank you for any advice to help addressing this weird issue.<br /><br />Best regards<br /><br />Patrick Perroud<br /><br />- - -<br /><br />InterfacePtr<ITextModel> textModel(textFrame->QueryTextModel());<br /><br />InDesign::TextRange range(textModel,0L,textFrame->TextSpan());<br /><br />K2Vector<InDesign::TextRange> textRanges;<br />textRanges.push_back(range);<br /><br />K2Vector<ClassID> attrClasses;<br />attrClasses.push_back(kTextAttrPointSizeBoss);<br /><br />TextAttributeRunIterator iter<br />(<br />     textRanges.begin(),<br />     textRanges.end(),<br />     attrClasses.begin(),<br />     attrClasses.end()<br />);<br /><br />while(iter)<br />{<br />     ITextAttrRealNumber* fontSizeAttr = (ITextAttrRealNumber*) (iter->QueryByClassID(kTextAttrPointSizeBoss,IID_ITEXTATTRREALNUMBER));<br />     <br />     if(fontSizeAttr)<br />     {<br />          PMReal rSize = fontSizeAttr->GetRealNumber();<br />          <br />          rSize = rSize * scaleFactor;<br /><br />          fontSizeAttr->SetRealNumber(rSize);<br />     }<br />     <br />     ++iter;<br />}

    Hi Peter,
    Thanks for your attention to the problem. The independent stories were 
    all threaded. I don't really understand why, but upon removing a 
    return character at the beginning of the text that would not fill 
    upwards, everything moved up to where it belonged.
    Thanks again.
    Gary

  • Relation of issue materials with vendor number???

    Hi Gurus!!!!
    Can anyone tell me that can I find the vendor number by giving material document number and movement type type: 201. i.e. is there any relation of vendor number with issue material..........
    Please give me any solution!!!
    With regards
    Pardeep Sharma

    Hi,
    Pls go to MSEG table, provide the material no in MATNR field and vendor no in LIFNR field and movement type as 201 in BWART field.
    You will get the list of material document nos in the system against the given material no.
    Then you can go to MB03 t-code, key in the material document no and get complete details.
    Hope this helps.
    Regards,
    JLN

  • Accordion - Ajax within accordion panel resize issue

    Hi,
    I'm in a little bit of a fix.
    I have an accordion whose panels have ajax enabled regions
    within them.
    The ajax enabled regions have search forms which give a
    search result within the same page (which is basically within the
    panel as well) once a button is clicked.
    My issue is that once I click search, my result set increases
    the size of the page causing the accodion panel to enable a scroll
    bar. Is there some way in which I can have spry resize the panel
    instead of it enabling a scroll bar?
    If I open and close the tab ofcourse, the region is resized
    to cater to the search results as well with no scroll bar.
    Incase this is not possible, is there a way to reopen the
    selected panel on a page refresh event as all the tabs are closed
    when a refresh occurs.
    Thanks!
    When the accordion opens up, it shows

    Hi kundalani,
    If you are using Spry.Utils.updateContent() to load the
    contents of the panel, you can pass in a callback that sets the
    height of the AccordionPanelContent to "auto" after the new content
    has loaded:
    function LoadContent(ele, url)
    ele = Spry.$(ele);
    Spry.Utils.updateContent(ele, url, function() {
    ele.style.height = "auto"; });
    <a href="#" onclick="LoadContent('e1p2',
    '../../data/frag1.html'); return false;">Frag 1</a> |
    <a href="#" onclick="LoadContent('e1p2',
    '../../data/frag2.html'); return false;">Frag
    2</a></p>
    <p> </p>
    <div id="example1" class="Accordion" tabindex="0">
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Panel 1
    </div>
    <div id="e1p1" class="AccordionPanelContent">
    <p>Panel 1</p>
    </div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Panel 2
    </div>
    <div id="e1p2" class="AccordionPanelContent">
    <p>Panel 2</p>
    </div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Panel 3
    </div>
    <div id="e1p3" class="AccordionPanelContent">
    <p>Panel 3</p>
    </div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Panel 4
    </div>
    <div id="e1p4" class="AccordionPanelContent">
    <p>Panel 4</p>
    </div>
    </div>
    </div>
    <script type="text/javascript">
    var example1 = new Spry.Widget.Accordion("example1", {
    useFixedPanelHeights: false });
    </script>
    --== Kin ==--

  • Flex 3 Window Resize Issue

    Hello all,
    I'm a beginning Flex programmer and I've run into an issue I
    don't know how to resolve. The problem is this: when my app is
    compiled under Flex 2 all of my window components resize nicely
    when the browser window is resized (<mx:Application width="100%"
    height="100%">). However, when I compile under Flex 3 this
    doesn't work; all components stay the same size and I get
    scrollbars at the edges of the browser window if I shrink the
    browser window.
    The backwards compatibility and migration documentation
    doesn't say anything about this functionality being changed. Anyone
    have any idea why this is happening, and how I can get the older
    functionality back?

    Setting the scroll policy to off certainly gets rid of the
    scrollbars, but it doesn't actually fix the resize behavior of the
    application.
    I ended up fixing this problem by cheating: I set up a resize
    handler for mx:Application that resizes the main Container in the
    app.
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:custom="components.*" layout="absolute"
    width="100%" height="100%" minWidth="780"
    minHeight="580">
    <mx:resize>
    <![CDATA[
    try { bpanel.width = width; bpanel.height = height; }
    catch (err:Error) {}
    ]]>
    </mx:resize>
    A hack, yes, but at least things work again.

  • SWFLoader loded swf and relative path issue

    Hi,
    Before explaining the problem, let me describe the usecase.
    I have dashboard flex application hosted on Host1.
    I have another flex application which acts as plugin to dashboard and is hosted on Host2.
    I am using proxy to load plugin into dashboard using SWFLoader. With proxy SWFLoader in dashboard thinks that the plugin is coming from same host.
    For plugin to load I specify SWFLoader source something like - source="Proxy/Host2WebappDir/plugin.swf.
    Everything is fine upto this point. plugin.swf get loads successfully without any issue.
    Now the problem -
    If plugin.swf made some request - the url path of that requrest is expected to be relative - i.e. if it make request say getIndianStates.xml, I am expecting the request should look for resource at "Proxy/Host2WebappDir/getIndianStates.xml". Instead it tries to look for getIndianStates.xml into dashboard hosting directory on Host1.
    Can this issue be resolved without making any modification in source of plugin.swf.
    Thanks in advance,
    Prithveesingh Zankat.

    I don’t know if any way to fix this without changing the URL the plugin wants to load.  Now if the plugin stores that URL in a publicly accessible variable, you might be able to access it from the main SWF and change it.  But it would be better to have the plugin detect relative paths and make sure they are relative to the SWF.  The SWFLoader component uses a LoaderUtil class to do that for SWFs it loads, but loads that don’t use SWFLoader need similar fix ups.

  • Java script browser resize issue

    i'm building a website in dreamweaver for a friend and he
    wanted the browser to resize to a specific size once the user goes
    to the site. the script i have now works fine, but then when i go
    to another page, the browser bounces out and then resizes. is there
    a script that would just keep the browser the same size without
    having to bounce out? thanks.
    and click on any of the left side nav links to see the
    browser quickly bounce out and then resize. thanks.

    How rude.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "oiruop" <[email protected]> wrote in
    message
    news:fpki5e$2f5$[email protected]..
    > i'm building a website in dreamweaver for a friend and
    he wanted the
    > browser to
    > resize to a specific size once the user goes to the
    site. the script i
    > have now
    > works fine, but then when i go to another page, the
    browser bounces out
    > and
    > then resizes. is there a script that would just keep the
    browser the same
    > size
    > without having to bounce out? thanks.
    >
    > here's the link to view the issue yourself.
    >
    http://www.ohhello.tv/index2.html
    >
    > and click on any of the left side nav links to see the
    browser quickly
    > bounce
    > out and then resize. thanks.
    >
    > <SCRIPT>
    >
    > window.resizeTo(724,1000);
    >
    > </SCRIPT>
    >
    >
    > <SCRIPT LANGUAGE="javascript">
    >
    > var width = screen.width
    >
    > var height = screen.height
    >
    > document.write("<body
    onUnload=window.resizeTo("+width+ "," +height+")>")
    >
    > </SCRIPT>
    >

  • Cache-flush VM-related performance issue

    Dear forum,
    I've got a peculiar performance issue going on with the BDB pagecache being flushed to disk. I've managed to reproduce the issue perfectly on three out of three quite different systems that I've tried on, so it is at least quite well-defined.
    My usage pattern for the database in question is such that I periodically (perhaps once every 10-60 seconds or so) need to read through an amount of values (around 500-2000 or so) from a database containing a rather large amount (in the millions, at least) of keys. There are a few writes for every such batch, but not very many (a couple of tens). The keys that are read each batch are quite random, and very likely to be completely different from batch to batch. The database is a DB_HASH.
    When I do that, BDB seems to dirty a lot of pages in the page cache (which I have currently sized at 512 MB so that pages don't have to be forced out from it), from what I can tell by manipulating refcounts and stuff, so all in all, a single batch seems to dirty some 10-40 MB or so of the mmapped cache region. (I check this using pmap -x on Linux.) Note that when I speak of pages and the dirtying of them here, I mean at the VM level, not the BDB level.
    A while after this has happened, the VM comes around and wants to flush the dirty pages to disk, so it batches writes of large portions (often the entire set of dirty pages, but sometimes it only does 10-20 MB or so at a time; this detail shouldn't matter) of the dirtied pages to the backing block device. Since the dirty pages are often rather interspersed in the region file, such a flush usually requires a couple of thousands of write ops, so it might sometimes take up to 10-20 seconds for the requests to complete.
    If the program, then, again tries to dirty any of the pages while they are waiting to be flushed, which is often the case, the VM will block it until the page in question is flushed. This means that the thread in question might very well be blocked for up to 20 seconds, causing quite annoying wait times.
    How to deal with this problem? I've considered trying to put the region files on tmpfs or so, but that seems like such an excessive measure for a problem which, from what I can tell, should be commonplace.
    On a very related note, I've noticed a large discrepancy in the I/O performance between the systems I've tried this on. Two of the systems in question manage to carry out some 200-500 write ops per second on my test load, while the third manages closer to 2000-3000 write ops per second, which makes quite a difference. What makes it very weird is that the faster system uses the exact same hard drive as one of the slower systems. I know this isn't exactly a BDB-specific question, but I thought someone around here might have experience in the matter. All three systems use Linux and S-ATA hard disks (not SSDs), but they use different S-ATA host adapters, different kernel versions and are configured in quite different ways.
    Thanks for reading my wall of text! I'm sorry for dragging on so long, but I didn't know how to describe the situation more briefly.
    Edited by: Dolda2000 on Mar 23, 2013 8:08 AM

    As a follow-up on this, it appears that the blocking behavior was introduced in Linux 3.0 to stabilize pages under writeback:
    http://lwn.net/Articles/486311/
    It seems that the commits that introduced the behavior can be safely patched away, and also that it is due to change in 3.9, but for now, this is not the route I took to solve it.
    Rather, I wrote a patch to Berkeley DB to allow me to store the region files in another directory than the environment root directory, and used it to store them in /dev/shm -- that is, on tmpfs, which avoids writeback of the region files altogether.
    If you want the patch, it is here for db4.8 (which what Debian Stable uses), and here for 5.1, which is what Debian Testing uses.
    (For some reason, the hyperlink format suggested by the forum doesn't seem to be working?)

  • Repeating Frames Resizing Issue

    Hello,
    I've been using Reports 6 recently having been using Reports 10 up until now, and I've got an issue in the Report I'm currently working on.
    When I try to resize any of the repeating frames on the report, they appear to default to a much large size...example...
    If I have a repeating frame containing 1 field and I try to reduce the size of the frame so it fits snugly around the field, as soon as I click on one of the draghandles on the frame, it immediately resizes the frame horizontal or vertical (depending on what draghandle is used). So far, this has just been annoying more than anything else and I've generally been able to avoid any problems by simply undoing the change, or redrawing the frame.
    Has anyone else experienced this? Is there a setting off in my version of Reports? Or is this a general problem?
    Thanks

    Thanks for your feedback.
    The reason I have 4 repeating frames is because each frame belong to a different group.
    <SOME TEXT> is infact set to vertical expand.
    I came up with a solution by using a 5 lines that stretches with FRAME 2 and set no lines
    property for FRAME 3. That way FRAME 3 repeats 7 times horizontally, one in each box created by the lines with FRAME 2. Thus when FRAME 2 expands, the expanding lines creates the 7 horizontal boxes.

Maybe you are looking for

  • Moving video playback to a specific point in a video... impossible?

    So watching a full length movie on my 2nd gen touch. Say I want to skip to the 1:27:30 mark, but trying to move the video position slider to that spot is a lesson in insanity. For a big movie like this, you end up with 10 min chunks before or after w

  • [Off topic] Need some hints where to start

    Hi, I've been out of C++ for around 9 years. (Doing java since then) For an upcoming project I have to get back into it. I've already done quite much execise with STL, boost and ICU. Now I'm looking for a solution for the following problem: I need so

  • Flash training book

    i've used classroom in a book and some other books (something with a rabbit icon) for previous versions of flash. they are all ok but none of them were able to give me a strong enough grasp where i felt like i knew what i was doing. can anyone recome

  • Skill set requirements for SAP E-Sourcing and CLM

    Dear All, We are about to implement SAP-E-Sourcing 5.1 and CLM 2.0  (on Netweaver Platform). What are the skill sets required to support and do enhancement and customization to this solution?. Thanks in advance. regds velu

  • New iOS 4.1, HDR Images

    Hi, Just checking if anyone knows or read that I've missed. Is the HDR feature shown yesterday in iOS 4.1 available to 3GS users as well or is it only for iPhone 4 ?? Any clues ??