Posts by Danilo Formiga • 76 points
5 posts
-
1
votes3
answers4717
viewsA: I can’t connect with postgresql in php
1º Enable your PHP error messages: Open this file with your preferred editor: /etc/php5/apache2/php.ini Look for this line: display_errors = Off and exchange for this: display_errors = On After…
-
1
votes1
answer96
viewsA: How to prepare a Java object to be sent (with values)?
First thing you should do is ensure that your entity is implementing the Serializable interface of the java.io package.Serializable; After that, you will set the values of your object and with it…
javaanswered Danilo Formiga 76 -
2
votes1
answer1026
viewsA: Centering text on a Jtextarea or Jtextpane
Using Jpanel you could do so: StyledDocument doc = textPane.getStyledDocument(); SimpleAttributeSet center = new SimpleAttributeSet(); StyleConstants.setAlignment(center,…
-
1
votes1
answer824
viewsA: Calculate change between textbox?
A friendly example, that would be: using System; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }…
c#answered Danilo Formiga 76 -
1
votes2
answers174
viewsA: Method does not correctly show expected result
A quick and simple way to solve this is to change your method of applicationso: public boolean aplicaDesconto(double porcentagem) { setValor(getValor() - (getValor()*porcentagem)) return true; }…