Posts by HimorriveL • 143 points
46 posts
-
0
votes1
answer31
viewsQ: Exception coming from a LIB and closing the system c#
I made a lib to manage the part of a system of mine, until then everything is ok, the problem occurs when this lib launches an Exception: public async void Update(ObjetoPostalModel objeto) { await…
-
0
votes1
answer50
viewsQ: Difficulty with Clickonce c# Wpf
I have an application and recently I had to implement the Webdriver Phantonjs, which simulates a browser but in a way that is invisible to the user. In my application everything is ok, it works…
-
0
votes1
answer419
viewsQ: .Net c# Webrequest Post
People I’m studying Webrequest, I’m trying to make a query on the site of the post office and so I read it should look like this: WebRequest request =…
-
1
votes1
answer21
viewsQ: Problem with Binding and Caretindex
I have a Datagrid List: <DataGrid Name="GridLista" Grid.ColumnSpan="20" Margin="5" Grid.RowSpan="17" Grid.Row="3" CanUserAddRows="False" CanUserReorderColumns="True" AutoGenerateColumns="False"…
-
0
votes1
answer94
viewsQ: Inner John and Left John problem
I am using the Postgresql + C database# I have a Type that we can call Main. Inside it I have a long id, string name, I have a Classea, Classeb, Classec. Both the Classea, Classeb, Classec may or…
-
1
votes1
answer81
viewsQ: Force Field Attribute C#
Guys I have an Attribute class being her: class TipoServicoAttrib : System.Attribute { public TipoOperacaoEnum TipoOperacao; public int CodigoOperacao; } I need that when I use, it is mandatory to…
-
0
votes0
answers82
viewsQ: Insert Image into an HTML file
I am creating an HTML file and need to insert an image that is in the Resources for this I am trying to use the following code: private byte[] turnImageToByteArray(System.Drawing.Image img) {…
-
5
votes2
answers133
viewsQ: Printdocument Printpageeventargs c# wpf Pagesize WPF
I have the following code: PrintDocument pd = new PrintDocument(); pd.PrintPage += new PrintPageEventHandler(arquivoImpressao); pd.DefaultPageSettings.PaperSize = new PaperSize("teste", 300, 600);…
-
1
votes1
answer35
viewsQ: Conversion c# wpf Icollection and Observablecollection
I have a list Icollection Generica and need to convert to Observablecollection, so I do not know which class is to convert to ObservableCollection<MyClass>. I’ve been searching for that answer…
-
0
votes1
answer27
viewsQ: Reflection c# WPF Observablecollection
I have a problem, when creating an Observablecollection I do so: ObservableCollection<MinhaClasse> Lista = new ObservableCollection<MinhaClasse>(); So far so good. My problem is, through…
-
0
votes1
answer101
viewsQ: Bind problem in C# WPF
I have a WPF that is as follows: <ComboBox Name="comboBoxRemetente" VerticalContentAlignment="Center" Margin="5" Grid.ColumnSpan="20" ItemsSource ="{Binding Path=Lista, Mode = TwoWay}"…
-
1
votes1
answer36
viewsQ: Problem with Inotifypropertychanged C# WPF
Guys I’m having a question, I’m messing with c# WPF vs2017, and I did the following: every class I put Inotifypropertychanged and added: public event PropertyChangedEventHandler PropertyChanged;…
-
1
votes0
answers30
viewsQ: Problem with Bindind + Keydown C# WPF
I have in XAML a combobox and a textbox, being them: <Label Grid.ColumnSpan="4" Content="Tipo Filtro" Grid.Column="0" Grid.Row="0" Padding="0" VerticalContentAlignment="Center"/> <ComboBox…
-
0
votes1
answer60
viewsQ: Run Event Textbox c# WPF
I have a Textbox and need that after pressing the right mouse button and clicking paste, it do a check, I tried to use various methods like TxtTexto.PreviewMouseLeftButtonDown+= new…
-
2
votes2
answers311
viewsQ: Return Value ID C# Npgsqlcommand
After inserting a row of information in a given table, I need to recover the ID value to fill my object, my code is like this: using (NpgsqlConnection pgsqlConnection = new NpgsqlConnection(conn) {…
-
4
votes3
answers218
viewsQ: Public field X property
I have a string defined as "name" initially it is as private. string nome; In case I assign the methods get/set, and to stay in the pattern I change the initial letter to uppercase, getting: string…
-
1
votes1
answer27
viewsQ: Problem with Reading Attribute in c#
I have the following problem, I have my ENUM class: public enum DataBaseType { DATA_BASE_NAME, SERVER_IP_NAME, PORT, USER_NAME, PASSWORD }; I have my Attributo, in which you have this ENUM: public…
-
2
votes2
answers271
viewsQ: Dapper requires writing SQL code, why?
I’m looking at the following link that uses Dapper: Getting Started With Postgresql Using Dapper In . NET Core and my question is, when I do Java I don’t need to write SQL code as this example here:…
-
1
votes0
answers52
viewsQ: Problem Accentuation
Friends, I have a problem, all the accents you have in the program that I made using Tomcat are with "?" as an example: Atrav? s, informs?? es,? ndices. in the pom I set up: <properties>…
-
1
votes1
answer545
viewsA: Access image from Resources spring
After many hours, follow the answer: <img src="images/logo_vallon.jpg"/> <mvc:annotation-driven /> <mvc:resources mapping="/images/**" location="/WEB-INF/images/" />…
-
0
votes0
answers54
viewsQ: Css file with image inside
Person I’m trying to set inside css an image, for this I’m using: body { margin: 0px; padding: 0px; background: #C0C4C5 url(images/page-body-bg.png) repeat; font-family: "Trebuchet MS", Arial,…
-
0
votes1
answer545
viewsQ: Access image from Resources spring
I have the following scenario: I have the srping-Servlet.xml file with the following configuration: <beans xmlns="http://www.springframework.org/schema/beans"…
-
0
votes3
answers320
viewsQ: Where to put the files?
When we use Spring and Maven, where should we put the files? in the webapp folder or in the Webcontent folder?
-
0
votes1
answer85
viewsQ: List Classes with Generated Jar
I have a class that searches and lists the classes within my jar, being it: public static Class[] getClasses(String packageName) throws ClassNotFoundException, IOException { ClassLoader classLoader…
-
0
votes1
answer92
viewsQ: Manytomany Hibernate - study
I am studying the operation of Ibernate and I have some doubts.... Folks anyone can tell me how Hibernate works on the issue of organizing this information Manytomany? on this example site:…
-
1
votes0
answers432
viewsQ: Printing houses in Lleida
Personal to make the printing on a Diebold printer I am using the following code: DocFlavor docFlavor = DocFlavor.INPUT_STREAM.AUTOSENSE; // Atributos de impressão do documento HashDocAttributeSet…
-
0
votes1
answer68
viewsQ: Checks if a class has a @interface
I have the class below as an example: package br.com.nomeMarca.testes; import br.com.nomeMarca.cidog.interfaces.*; import javafx.beans.property.*; import java.io.*; import java.math.*; import…
-
0
votes1
answer242
viewsQ: Check if a variable exists in a class
People I am trying to verify if a variable exists in a class. For this I am using the code: try{ clazz.getDeclaredField("id"); } catch(Exception e){ System.out.println(e.getMessage()); } With that I…
-
1
votes0
answers116
viewsQ: Insert folder with MAVEN javafx project
Guys I have a MAVEN project, when Gero the project, it generates the main JAR and the LIB folder, which contain the library, all right up to there, what I need is to include another folder with…
-
0
votes0
answers631
viewsQ: Difference between Scenebuilder and Javafx Application
People I am using Scene Builder 2.0 to make the Layout of my Javafx application. When I see the application through Scene Builder everything is ok, but when I run the Javafx application the side is…
-
1
votes2
answers868
viewsQ: CSS javafx Color Text
I have a Button and I am using javafx, what I need: the text of the button is written Search, I need the 'B' to be in red and the "uscar" to the default color, I have tried everything and I am not…
-
0
votes1
answer451
viewsQ: JAVA Query with ACCESS - Slowness
I need to access the ACCESS database, the query is accessing correctly, but I noticed that to have the return of information, the JAVA first reads and all the tables and all the data, is that right?…
-
0
votes1
answer2008
viewsQ: Recover WSDL from Webservice Nfe ASMX
How I recover the WSDL from this service: https://nfe.fazenda.sp.gov.br/ws/recepcaoevento.asmx I need the WSDL to add it through Netbeans, there I can only add the WSDL and this is final asmx. EDIT:…
-
0
votes0
answers154
viewsQ: Consuming JAVA webservice - Problem
I am trying to consume the webservice but is giving a mistake that I do not understand. The webservice is this. I’m trying to use the solicitarRange, and normally I do so: new…
-
1
votes2
answers6734
viewsQ: Change column type of Postegresql Database
I need to change the column type of a table I’m using the following code: ALTER TABLE cadastro_remetente ALTER COLUMN ssl_smtp DROP DEFAULT; ALTER TABLE cadastro_remetente ALTER COLUMN ssl_smtp SET…
postgresqlasked HimorriveL 143 -
0
votes1
answer103
viewsA: How do I choose the download location of a report made in Java?
If you want the user to choose the location that will save, just use Jfilechooser, then he chooses where he wants to save and you pass the path where will be saved...
-
0
votes2
answers371
viewsA: Difficulty Mounting SQL Query with UNION with SUM
SELECT QUERY.NAME, QUERY.ID_CLIENTE, sum (QUERY.value_total) the total value_total from ( (SELECT CL1.NAME AS NAME,CL1.id_registration AS ID_CLIENTE, sum (L1.VALOR_LANCAMENTO) as VALOR_TOTAL FROM…
-
1
votes2
answers371
viewsQ: Difficulty Mounting SQL Query with UNION with SUM
I have 2 tables that stores type of different sales, and I need to add everything to get the amount to generate the charge, however I am not able to mount the sql query, follows: SELECT…
-
0
votes1
answer271
viewsA: Bigdecimal does not allow 3 boxes after comma
Conforms techies help to catch the house amount after the comma use bigDecimal.Cale()
javaanswered HimorriveL 143 -
1
votes1
answer271
viewsQ: Bigdecimal does not allow 3 boxes after comma
Guys, I’m making a division between 2 Bigdecimal and I need the system to not allow 3 houses after the comma. I have a full amount and I need to divide it by the amount informed by the user. if you…
javaasked HimorriveL 143 -
0
votes1
answer56
viewsQ: SQL Query according to the Make a New Column
I have a column that is numerical. In this column there are positive and negative values. I need to make an appointment that when I’m positive, I’ll consult Tabela A, when negative I refer to Tabela…
-
1
votes1
answer1961
viewsA: Jtextfield does not interpret n as line breaking
Not updating correctly, put two bars instead of one. Substitute for: return String.format("\t-----------------------Cliente Regular-------------------------\n[%s]\t-> Nome: %s\n\t->Contacto:…
-
2
votes2
answers1128
viewsQ: FTP connection is not listing files
I am not able to list the folder files via FTP (through Filezilla I can access list correctly): FTPClient ftp = new FTPClient(); ftp.connect("ip_ftp"); ftp.login("usuario", "senha");…
-
2
votes2
answers1178
viewsQ: Java - Enter function
In the system there is a field, the person needs to fill this field and then press enter. By pressing enter the system does a check and then opens a JOptionpane asking to select: yes, nay, okay,…
-
0
votes3
answers2541
viewsA: RXTX: serial scale port connection
Thanks @Cantoni got it thanks to your tips... in case anyone needs: * * To change this License header, Choose License Headers in Project Properties. * To change this template file, Choose Tools |…
-
3
votes3
answers2541
viewsQ: RXTX: serial scale port connection
I’m trying to catch the weight of the scales, but I’m not finding success in this battle. As can be seen the connection to the SERIAL port (actually USB) is all ok: Stable Library…