Michael,
I can execute it without problems., initialize for PrescriptionTable is
executed when it is created (from the menu Display/Prescriptons)
What did you specifiy as Main Class? It should be PrescriptionDisplay
Rergards
Am 27.06.2019 um 18:20 schrieb mmo...@me.com:
> Here it is.
>
> Best
Michael,
I am sorry, but I do not believe it. If you have "new NewJFrame()"
somewhere and you execute it, the constructor gets executed, too. If
not, You made an error (not calling new NewJFrame())
Upload (or post) the whole program.
Regards
Am 27.06.2019 um 17:17 schrieb mmo...@me.com:
> All w
Michael,
I assume you have created your GUI by New JFrame Form", right? At
least, I hope so.
if you look at main() you will find something like:
new NewJFrame() ...
NewJFrame ist the name you have given during the creation of your class
/ form. This creates the form and first executes its C
The code you show does not populate the data vector so it has no rows
unless you just haven't shown where you do that. You can't set a value
in a row that does not exist, thus null probably. Also num or row could
be null. Finally, your column numbers in the setValueAt lines do not
agree with yo
Once again:
did you initzialize num and row ?
When I design your example, I get:
...
scriptTable.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null
This is the generated code:
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
scriptTable = new javax.swing.JTable();
setSize(new java.awt.Dimension(200, 200));
scriptTable.setModel(new javax.swing.table.DefaultTableModel(
Or maybe you have not created the model or supplied it with starting
data vector.
Bayless
On 6/26/19 12:42 AM, Helmut Leininger wrote:
Hi Michael,
without more information it is very difficult to say. It could be that
either scriptTable, num, or row is not set.
I would try to use the deb
Hi Michael,
without more information it is very difficult to say. It could be that
either scriptTable, num, or row is not set.
I would try to use the debugger to find out.
Helmut
Am 26.06.2019 um 01:20 schrieb mmo...@me.com.INVALID:
> I placed a JTable, on a JScrollPane on a JInternalFrame, usi
I placed a JTable, on a JScrollPane on a JInternalFrame, using the default
DefaultTableModel.
When I try and load data into the model I get a java.lang.NullPointerException.
scriptTable.setValueAt(num, row, 2);
The table is initialized in the constructor method InitComponents.
Any idea what I’
Thanks a bunch! That did the trick! I think I looked at that setting tab, but
must have just overlooked that setting.
Thank again!
Joe Huber
Check the box "Show Assistant". I think
> this is that for which you are looking.
>
> On Tue, Apr 17, 2018 at 5:55 PM, Joseph Huber wrote:
>>
>> Hello!
>>
>>
>>
>> In the NetBeans GUI editor, when on the “Design” tab, there is normally a
>
Tools->Options->Java->GUI Builder Check the box "Show Assistant". I
think this is that for which you are looking.
On Tue, Apr 17, 2018 at 5:55 PM, Joseph Huber wrote:
> Hello!
>
>
>
> In the NetBeans GUI editor, when on the “Design” tab, there is normally a
Hi, I'm not sure, but this is what I have on the bar for NB 8.2
Edit the image and draw a circle to indicate what you are talking about.
Thanks
Efrem
On Tue, Apr 17, 2018 at 8:55 PM, Joseph Huber wrote:
> Hello!
>
>
>
> In the NetBeans GUI editor, when on the “Design” tab,
Hello!
In the NetBeans GUI editor, when on the "Design" tab, there is normally a help
bar (with a light bulb icon on the left side and an "X" on the right side)
above the form being edited. Somehow I clicked the "X" or somehow did
something else to remove the he
14 matches
Mail list logo