Strange behaviour with my updating of combo box

public class EditVideoDialog extends JPanel implements ActionListener{
     JTextField text_Name, text_Price, text_Producer, path_Picture;
     JTextArea textarea_Description;
     public JComboBox combo_Genre, combo_Name;
     String old_VideoName;
     Vector <String> myVideoName = new Vector <String>();
     public EditVideoDialog(){
     public EditVideoDialog(Vector <String> myVideoName){          
          combo_Name = new JComboBox();
          combo_Name.setEditable(false);
          combo_Name.setMaximumRowCount(4);
          combo_Name.setPreferredSize(new Dimension(300,25));
          currentVideoName(myVideoName);
     //Function to set current video name
     public void currentVideoName(Vector <String>videoName){
          combo_Name.removeAllItems();
          combo_Name.addItem("");
          for(int k =0; k<videoName.size(); k++){
               combo_Name.addItem(videoName.get(k));
}I tried with the script above, the combo_box first got compiled nicely after retrieving data from the database.
However, when i tried to do the updating of combo box with function currentVideoName, it fails.
I also tried puttng a ComboBoxModel inside my function but it fails. It just doesn't get updated...
ComboBoxModel model = new DefaultComboBoxModel(myVideoName);
combo_Name.setModel(model);can someone advise me or show me some simple code on this?
Edited by: diskhub on Mar 16, 2008 11:27 AM

http://forum.java.sun.com/thread.jspa?threadID=5275345

Similar Messages

  • Strange behaviour with Safari.

    Very strange behaviour with Safari this morning.   Pages loading piecemeal or partially.   The content only becomes viewable after the cursor has passed over the area.   Have cleared caches and reported it but I'm wondering if this is a local matter here in the UK.   Anyone suffering similar problems?    Firefox is responding perfectly normally.

    I see a reply has come back via a previous post.   As I am trying to get a response to this one I shan't reply there but I should point out that for me, this is an isolated problem.   I do use open DNS but with no track history of problems there , I can't blame that.
    In the last few minutes normality has returned.

  • Strange behaviour with nested overflow headers

    Hi there,
    I have a strange behaviour with nested overflow headers. I have a hierarchy with some dynamic tables an several headers for the hierarchy steps. When the table entries lead to an page overflow, I would assume, that all parent headers will be shown. But unfortunatley only the last (the deepest in the hierarchy) defined overflow header will be shown. Here you can see a quick example of it. (http://www.nemonon.de/HeaderProblem.xdp)
    Any help would be very welcome.
    Thanks and greetings,
    Joerg

    That will sure work for some requirements and thanks for the ideas. But this would fail for the second table. Perhaps my example xdp only shows the behaviour of the nested overflow headers and it´s structure is reduced to show that. The real situation is a bit different. The parent containers also contain some other content. The Problem is not the table...I've just chosen it to produce some content and another nested header. Just try to uncheck the overflow header of the table. This will lead to, that the next defined header (in this case "HeaderThree" is shown. When you go on by also disabling that header, the next one will be shown...and so on. This shows, that the headers for their own are functional, but they fail in combination.
    Greetings,
    Joerg

  • Strange behaviour with Subjective Assessments comments in SSM10 SP10

    Good day community,
    We have strange behaviour with Subjective Assessments comments in SSM10 SP10.
    We have been using this successfully for 3 quarters.
    The scenario is as follows.
    Business users capture Subjective Assessment comments successfully and these can be viewed on the scorecard overview for Q3. This can be printed to PDF successfully as well.
    A few hours later, when the user accesses the Scorecard Overview, the Q3(March 2014) comments are now replaced with the
    Q2(Dec 2013) comments. 
    This has not happened previously. We have recently deployed Internet Explorer (IE) 10 to some of the machines that previously used IE9 or IE8. Could this be a contributing factor?
    This has happened with one database on 2 contexts.  Although the database/scorecard in question has been created on SSM10, we have recently upgraded the rest of the organisation onto SSM10 from SSM7.5 but those are completely separate databases.
    We have not found a pattern yet, but there is only one assigned administrator for this database and she often has 'funny' things happen on her machine. Could it be possible that there's a virus on her machine? Or maybe there's a sequence or combination of steps that she's doing that could cause this? We have not been able to recreate the situation in our developer offices.
    Any ideas on this strange behaviour would be appreciated.
    Regards,
    Natasha

    Hi everyone,
    We have since noticed that if you go into the Administrator > Context Management > and change the "Person Responsible" and then save, once you go back to the Scorecard Overview all the Q3 comments have been overwritten with the Q2 comments.
    This happened on a different machine so it seems there could be a bug in the Administrator.
    Any thoughts on this strange behaviour would be appreciated.
    Regards,

  • Strange behaviour with combo boxes.

    Has anyone else noticed strange behaviour of combo boxes with applets?
    What happens is that on selecting the combo drop down, the dialogue the combo is sitting on moves behind its parent window. You just end up seeing the combo list, and no dialogue. Select a combo item, and sometimes the dialogue reappears, and sometimes it is still hidden.
    I've only seen this whilst running an applet in browsers. In Eclipse I don't see the behaviour.
    The behaviour is also very intermittent.
    I'm using Java Plug-in 1.6.0_10-rc2, Using JRE version 1.6.0_10-rc2 Java HotSpot(TM) Client VM, on Windows Vista, Google Chrome browser.
    I'd raise it as a bug, it certainly seems quite serious, but I don't have a reliable test case.
    I have a work around, on all my dialogues with combo's on them, I have setAlwaysOnTop(true). Not really the correct behaviour though.

    GeoffTitmuss wrote:
    No, I believe I am just using Swing components.Ok, then I'm out of ideas

  • Dynamic Update of Combo Boxes with Struts

    I need to update one dropdown box based off of the selection of the other. When I select an option I am using an onchange="reload()" to reload the page. The problem with this is as far as I can tell is only refreshing the html in the browser and not sending a new request back to the server. I have the tags bellow. If any one has any Ideas I would appreciate it.
    <bean:size id="planCount" name="new_enrollment_newEnrollmentForm" property="newEnrollmentTO.coverages[${status.index}].classPlans" scope="session"/>
    <c:choose>
         <c:when test="${planCount > 1}">
              <html:select name="new_enrollment_newEnrollmentForm" property="coverages[${status.index}].classPlanID" styleClass="coveragePlanDropDownSize" onClick="window.location.reload()" >
                        <html:option value=""/>
                        <html:options name="new_enrollment_newEnrollmentForm" property="coverages[${status.index}].classPlans" />     
              </html:select>
         </c:when>
         <c:otherwise>
              <c:out value="${coverage.classPlanID}"/>
         </c:otherwise>
    </c:choose>
    <bean:size id="volumeCount" name="new_enrollment_newEnrollmentForm" property="newEnrollmentTO.coverages[${status.index}].volumes" scope="session"/>
    <c:choose>
         <c:when test="${volumeCount > 1}">
              <html:select property="newEnrollmentTO.coverages[${status.index}].volume" styleClass="volDropDownSize">
                   <html:option value=""/>
                   <html:options name="new_enrollment_newEnrollmentForm" property="coverages[${status.index}].volumes"/>     
              </html:select>
         </c:when>
         <c:otherwise>
              <c:out value="${coverage.volume}"/>
         </c:otherwise>
    </c:choose>

    Yes, you are correct. Using the JavaScript reload() function will not submit anything to the JSP. Try something like onchange="document.forms[0].submit()" or something like that. JavaScript isn't my strong suit.
    Brian

  • Strange behaviour with smart music list in iTunes

    I don't know how is the name of this list in english. In portuguese iTunes calls "Lista Inteligente". So, I eddited a list to show all musics never played up to 100 months ago. If I click on a music in this list, before it plays, the music disappear from the list as it would be played and nothing will be played. And so one, the next and etc. No date is shown in "last play" but the music isn't anymore to see in this List.
    This list works well for many years but suddenly I have this strange behaviour.
    could it be something wrong with new update? Now I have iTunes installed 11.3.0.54

    Click the gray disclosure triangle in front of the iPod touch name.
    Thus I cannot do any functions with the music on my iPod - such as delete songs, update song info, etc.
    I would suggest making any changes to songs in iTunes and then transferring the songs to the touch.
    You can create playlists and autosync on lythos playlists.
    Then add/delete from those playlists, update items in iTunes then plug in the touch to sync it.

  • [solved] AMD Radeon - strange behaviour after mesa-update

    Good afternoon Ladies and Gentlemen,
    This is my first posting, I will try to give as much as detailed information refering to my problem as possible. Please be patient if I ask for solutions which for you all seem easy and logical, I am a Newbie.
    The details: I am running a HP Pavilion 17 " AMD Quadcore laptop, 8gb Ram, Arch Linux 32bit Kernel 3.17.1 XFCE desktop with an AMD Radeon graphic card for about a few weeks now. Everything went fine so far, but last Saturday I did an update via pacman-Syu, the update included a mesa package. All went smooth as ever. Then after a reboot the XFCE desktop had stripes across the laptop screen, the mouse cursor had disappeared, also letters of the icon descriptions and the menus were missing, some strange "hieroglyphics" appeared instead of them. I wasn't able to downgrade the mesa-package as I nearly wasn't able to open the terminal because of the missing mouse cursor, then I managed somehow to get into the terminal and gave in the commands but the writing was incomplete and/or did not work because of these strange and missing letters.
    No problem, I thought to myself, a fresh install will do the work, so I wipped my hard drive using Parted Magic, then I did a fresh Arch install (Netinstall), this time using LXDE instead of XFCE as my desktop environment. When I booted into the login screen first, it looked fine but after logging into the desktop all the stripes, the missing mouse cursor and the strange letters appeared again. So is there any solution to that strange behaviour ? Before the Saturday-update everything worked without any problems for weeks. BTW other OS work without these problems, I tried Macpup just for fun, no messing-up with my Radeon graphics card happened.
    Sorry for my piss poor English I am Austrian. Sorry for eventually causing any inconvenience asking this question. Regards, Fladi.
    Last edited by fladi (2014-11-04 05:01:28)

    fafik1234 wrote:
    I have the same problem, free drivers, xfce4, procesor AMD5350(Kabini), vga radeon R3 (8400)
    downgrade linux kernel to linux-3.16.4
    download: http://seblu.net/a/arm/packages/l/linux … pkg.tar.xz
    pacma -U linux-3.16.4-1-i686.pkg.tar.xz
    edit /etc/pacman.conf
    IgnorePkg   =  linux linux-headers
    screenshot
    linux 3.17 xfce http://pics.tinypic.pl/i/00592/ek3z3ip81ky2.png
    linux 3.17 compiz http://pics.tinypic.pl/i/00592/bddprwn4tey8.png
    linux 3.16 compiz http://pics.tinypic.pl/i/00592/ja5ma8c7rdgl.png
    On a laptop, free drivers, linux 3.17.1-pae, openbox, procesor core i5, vga integrated card - everything OK
    The screenshots you posted match exactly to my problem ! Are you really sure the bug is coming from Kernel 3.17 ? I had this kernel running for about a week without any problems, the problems came when updating mesa.

  • View Master mode strange behaviour with jpg files

    Hy all,
    I'm using Aperture, and I'm tweakin a lot the SW to discover all secrets ....
    I'm really concerned about a strange behaviour of the SW in view mode.
    If I open a jpg file, do not apply ANY modification, and apply the "show master" command (pressing M), there's a subtle behaviour :
    *the images get sharper !!!!*
    It behaves as if an "edge sharpening" was applied !!!!!!
    With _RAW files this thing doesn't happen at all._
    Even stranger, if I zoom to full definition (by pressing Z), and toggle between normal view and "show master" view, the immage remains the same !
    The effect is not so evident with all images, but sometimes it is !!
    Anyway, I expect not to have such kind of things with a professional SW.
    With professional cameras and good quality files it's really annoying not to beeing sure what's the REAL content of the jpg image.
    Has anyone noted this thing ? Is there a reasonable explanation ?
    The only one I tried to figure out is the following : may be Aperture applies some kind of resampling algorithm with jpg files (bicubic, bilinear, etc).
    May be this resampling is not applied with 100% magnification, as weel as with raw files.
    But it's only my guessing. Now, I'm tweaking other viewers and other SW to understand what's the real jpg image stored in the file : the blurer one form normal view or the sharper one with "show master" mode.
    I stress once again : of course, the jpg file I'm talking about have no settings at all, just imported and toggled with M button.
    Thanks in advance.
    Regards,
    Enzo

    Hy,
    I'm afraid I'm not been clear.
    The problem is this :
    1) jpg image opened in normal view mode, no zoom, (no quick preview, of course) : image with a certain amount of blour
    2) jpg image opened in show master mode, no zoom, (no quick previre, of course) : image SHARPER with respect with the previous.
    No edit applied from import, so "show master" command shouln't apply any change in rendering, should it ?
    The only thing I said on 100% view is that such difference (between normal mode e show mastermode) is not present with 100% magnification.
    That was the issue.
    Enzo

  • IPhoto: strange behaviour with preview thumbnails

    Is there a simple way in iPhoto 8 to rebuild the thumbnail database?
    I recently noticed a strange behaviour iPhoto 8 has with previews: In some of my event categories, iPhoto does not display the correct preview thumbnail of the picture, but a preview thumbnail of another event. When I click on the thumbnail, it reloads the appropriate preview and it does not happen again - with that picture. Also, if I double click an event to open it, the small thumbnail of the event's key photo that is to be displayed in the title bar (next to the All Events button) is not always correct.
    Thank you for your help!
    Stefan

    I have similar problems (lately) with iPhoto 6.0.6 -- thumbnails do not equal the images they 'thumbnail' of.
    Sometimes when it opens, it (recently) asked me to rebuild the thumbnails, but not always.
    Can I force a thumbnail rebuild using the command you gave - Apple-option while opening iPhoto? In iPhoto 6.0.6 this primarily forces a new selection of a library.

  • Strange behaviour with Slideshow placement since upgrade to 3.2 from 3.1

    Hello, since I upgrade from 3.1 to 3.2, I have some strange behaviours but in particular with the placement of a slideshow on a new page.  It is not displaying in the same position as I have in in Design.  It is way off and going up over my menus when I look at it in Safari or Chrome.  Does anyone know how to fix this or could it be a bug?

    Ben,
    When you upgrade, only apex_030200 will be created and that will use the tablespace you specify. It does not have to be the same one used by flows_030100.
    Scott

  • KYF exhibits strange behaviour with decimals

    Hi everybody,
    a DEC-key figure (IOBJ maintenance: additional properties->BEx->decimal places: Nothing Defined) exhibits strange behaviour regarding the treatment of decimals.
    When looking at the data in the cube (InfoCube maintenance->content) the value is 2,086.
    In the query the result is 2.0900000000 (%).
    Now comes the problem: in BPS (in the buffer) the value is 2,08. The system simply truncates the figure!  This is the value which is also used in the FOX and produces the wrong result.
    I need the system to sensibly round the values correctly to 2 decimals OR work with an additional decimal place.  How can this be done?
    Thanks for any input,
    Martin

    Hi,
    In the manual planning, while designing the layout, there is a setting in data columns tab called decimals. You have to insert 2 under this. Then in the layout data will be displayed with 2 decimal places.
    Hope this helps.
    Regards,
    Isha

  • Strange thing with set update calc

    Hello,<BR>i see a strange behavior with intelligent calculation,<BR>In my outline i have the time dimension like this,<BR>Year<BR> Qtr1<BR> Jan<BR> Feb<BR> Mar<BR> Qtr2<BR> Qtr3<BR> Qtr4<BR>When I run a calc script:<BR>SET UPDATE CALC OFF;<BR>SET CACHE HIGH;<BR>SET LOCKBLOCK HIGH;<BR>fix("member")<BR>calc dim(D1,D2,D3,D4,..);<BR>endfix;<BR>I see values of quarters are tripled and further the values of year is quadrupled (a total of 12 times). When removed SET UPDATECALC OFF; it works fine<BR>Do someone has any insight into this<BR>Thanks<BR>Rama<BR><BR>

    The calc engine doesn't evaluate a time rollup outside of the time dimension...<BR><BR>Each dimension has it's own rules for aggregation, and they are evaluated one dimension at a time.<BR><BR>So, once you have your quarter total for say, "New York City", it will be added to all the other cities in "NY State" to get the state total. This "NY State" quarter total for product "x" will then be added to all the other "NY State" quarter totals for any other products to get the product rollups, etc... Of course, this is based on a Time, Location, Product sequence.<BR><BR>Another way to look at this, is that only when the Time dimension is being aggregated will the rollup for "Jan", "Feb", and "Mar" be used to calculate "Qtr 1". If you need a concrete analogy, examine the way row totals and column totals are used in excel to obtain a grand total, you could do the sequence in either way (assuming a simple sum).<BR><BR>Where intelligent calc fits in: now assume with your row and column totals that only one cell is modified... You need to recalc the row total, the column total, and the grand total. The row and column totals are direct dependents (formula wise), while the grand total is directly dependent on the recalculated row/column totals. This progression continues until all known dependent roll-ups/formulas have been evaluated.<BR><BR>HTH<BR>

  • FF 4 (mac) doesn't display handcursor in all Flash websites. Also all html websites show strange behaviour with cursor. (blinking cursor in nearby div after clicking a button)

    I'm running Mac OS 10.6
    FF4 doesn't display the hand cursor or type cursor in '''all''' flash websites on links/textfieldss when it should. Highly annoying and disgracing all flashcontent.
    Also with html websites I experienced strange cursor behaviour with FF4. Although it's hard to reproduce the problem. It's very inconsistent.
    I have the feeling in general FF4 should look into it's cursor behaviour on all possible platforms. Mainly Flash.

    I replicated the typing cursor problem on the popular FB. Just click e.g. "x people like this", you'll see you get a blinking type cursor in the "close" button.

  • Strange behaviour with shorthand null check

    Today I had a strange occurance of a NPE with that code:
    SomeType type = (person.getType() != null ? TYPE1 : _ TYPE_2);
    When person is not null but person.getType() returns null, I always faced a NullPointerException. Changing the code to
    SomeType type = (person.getType() == null ? TYPE2 : _ TYPE_1);
    solved the problem and worked. I'd like to know if anyone here can explain this strange behaviour.
    Regards
    PantheraOnca
    Edited by: user4174452 on 05.07.2012 22:22

    Of course, your right. Wrote the original code in the office and just wanted to explain the "obscurity" by pseudo code.
    The original would not have been more explanatory, I think.....
    (TYPE_1 and TYPE_2 were originally enums and SomeType a suitable class)
    The point is that the check threw a NPE in the first case and worked in the second. You might reproduce this with arbitrary code. Will provide the Java-Version tomorrow....

Maybe you are looking for

  • HT200188 NAT from KB/ht5215 broken in ML 10.8.2?

    We've been using NAT with Lion Server and ML Server as described in the KB article but this config has broken on of our servers with the 10.8.2 / Server 2.1 (and 2.1.1) update. Basically, the pfctl lauch daemon won't load (exited with code: 1). Has a

  • Problems with Multi-language Translation (OMLT/MLT1)

    SAP B1 logon takes a lot of time when a user logs on to a database with many translations. The logon time seems to increase exponentially with the number of records in the mlt tables. For the moment we have translated only one field in 2 languages (I

  • Report URL

    Hi I am trying to call a report from APEX. I gave the whole url and it works fine. BUt I don't want to hard code the path as we may have to point it to different servers (Development, testing ,production). Can we set the whole thing in a variable in

  • My iPhone 4s is only 4 months old, and it will not charge, I'm a little ticked off.

    My Verizon iPhone 4s is only 4 months old and all of a sudden it's not charging, and the speakers work when they want to. The phone has never been water damaged. The phone has never been dropped on anything hard, always has had a case on it, and I'm

  • List of MARS events

    Hello, iam new to cisco mars a because we are about deploy this device i would like to know if is there list of events (events examples) generated by MARS Thanks M.