java - Text/Icons/JLabels disappear over Gif background -


java form loads gif background playing images , text overlay appear few seconds disappear forever. form built using netbeans form builder within null layout gif jlabel @ bottom , numerous text , images on it.

the gif rather large 350mb

 bpanel = new javax.swing.jpanel();         board = new javax.swing.jlabel(); bpanel.setpreferredsize(new java.awt.dimension(1156, 786));         board.seticon(new javax.swing.imageicon(getclass().getresource("/resources/game_2.gif"))); // noi18n         board.settooltiptext("");         board.setalignmenty(0.0f);          javax.swing.grouplayout bpanellayout = new javax.swing.grouplayout(bpanel);         bpanel.setlayout(bpanellayout);         bpanellayout.sethorizontalgroup(             bpanellayout.createparallelgroup(javax.swing.grouplayout.alignment.leading)             .addgroup(bpanellayout.createsequentialgroup()                 .addcomponent(board)                 .addgap(0, 0, short.max_value))         );         bpanellayout.setverticalgroup(             bpanellayout.createparallelgroup(javax.swing.grouplayout.alignment.leading)             .addcomponent(board, javax.swing.grouplayout.default_size, 910, short.max_value)         );          getcontentpane().add(bpanel);         bpanel.setbounds(0, 0, 1600, 910);          setsize(new java.awt.dimension(1616, 944));         setlocationrelativeto(null); 


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -