java - Source not found on array -


This is what I wanted to do:

Genital spreads in this class, like others The manufacturer has two criteria: the number of controllers and tracks. You should not store this member in the variable. This is all in the constructor: Set the layout to clear. Store the numTracks SoundNameBox version in a member variable array, where the number is the number of track tracks. This means that you should have a loop, and each time create another SoundNameBox instance through the loop. Track number 0 to numtracks -1 will be sure to have a track between them. GAP_SISE size difference. Set the size of this SoundBank so that it just holds the SoundNameBox instance.

I had to create a similar category first and it worked fine, though it does not display a box which is considered to be it and when I try to debug it, it says that when a member Returns the array in the variable then no source is found.

Here's my code:

  package view; Import javax.swing.JPanel; Import controller Controller; Public Square Soundbank Zipel {Public Sound Nibbbox [_] _track; Public Soundbank (Controller Controller, Int Number Track) {Set Layout (Faucet); _track = new SoundNamebox [numTracks]; Int y = 0; For (int i = 0; i & lt; numTracks; i ++) {_track [i] = new SoundNamebox (controller, i); _track [i] .setLocation (0, y); Y = y + tracks GAP_SIZE; } this.setSize (Tracks.GAP_SIZE * numTracks, Tracks.GAP_SIZE * numTracks); } Public ZeroSetSoundName (Ent Nutrek, String Name) {_track [numTrack] .setText (name); }}    

you add to > soundnameback After urgency, object to JPNL .

Put it in the loop for constructor

  this.add (_track [i]);   

Good luck

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -