Posts by Mariana Sempe • 606 points
9 posts
-
10
votes6
answers56799
viewsA: What is Nullpointerexception and what are its main causes?
This exception is thrown whenever trying to access an object that has not yet been initialized. What can cast the exception: Accessing null object methods. Access or modify null object fields. Catch…
-
2
votes1
answer424
viewsQ: How to show a jPopupMenu just below a jTextfield?
My intention is to create a search field where you type and appear the data of a query in the BD as a popup menu. I got this, it’s working. I created the menu and I can show it on the screen with…
-
16
votes4
answers14217
viewsQ: How to create/maintain "global variable" in java? To log in
I’m making a desktop application in Java. This application has a login screen (Jlogin) and one with the main application (Jprincipal) and I have a Login class with methods for database query and…
-
1
votes0
answers48
viewsQ: Does the mirror break influence the server audit?
Does the mirror break influence the server audit? I ask this because, in the databases where I need to redo the mirroring for some reason, I also have to specify the audit again…
-
0
votes1
answer577
viewsQ: Disable Masterpage Menu from contentPage
I have a small menu on the Master Page: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="INTEGRASYS.SiteMaster" %> <!DOCTYPE html> <html…
-
5
votes2
answers79
viewsA: Add CSS to the Grid Record
You can use this row to color your column (not counting the title): gvResultados.Columns[0].ItemStyle.Font.Bold = true; The interesting thing is that it is possible to apply any style you want, just…
-
5
votes2
answers844
viewsQ: CONSTRAINT that adds parameter to FOREIGN KEY?
I have the following code for creating tables: CREATE TABLE pessoa ( cod_pessoa int NOT NULL IDENTITY PRIMARY KEY, nm_pessoa varchar (50) NOT NULL, tp_pessoa char(1) NOT NULL, endereco_pessoa…
-
3
votes3
answers15498
viewsA: C# dynamic COMBOBOX (SQL BD table data)
If someone has this same doubt, follow the function I made to load the combobox: private void preencherCBDescricao() { String scon = "Data Source=NOME DO SERVIDOR\\BASESQL;Initial…
-
7
votes3
answers15498
viewsQ: C# dynamic COMBOBOX (SQL BD table data)
I need to load a combobox with the data from an SQL DEPARTMENT table (with code and description/ the description is displayed in the combobox but what is caught is the code) I used a datasource (the…