Categorias
fevereiro 2012 D S T Q Q S S « dez 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 Top 10
- Senha do Roteador "D Link DI 524"
- Login e senha do roteador GVT
- Comparar só a data em campo DateTime (SQL Server)
- Página: Home
- Utilizando a cláusula CASE em um select no SQL Server
- Data por extenso no C#
- Imprimir arquivo direto em C#
- Utilizando Módulo 10 para calcular dígito verificador
- Função para retornar o dia útil. (c#)
- Pegar o valor da ConnectionString do WebConfig
Tags
.Net Access Ajax alert algoritmo apt-get arquivo array autoincremento Banco de Dados bug cast chrome ClientScript componente CSharp dados data erro Erros framework Google Java JavaScript Kurumin Linux MySQL navegador objeto oo postgres Rede Roteador senha SQL SQL Server string timeout tipos top tradutor vetor Visual Studio Windows WirelessBlogroll
Arquivo da categoria: Java
Frames sem bordas – Java Swing
Para retirar as bordas e os ícones de maximizar, minimizar e fechar de seu frame basta chamar estes métodos (getUI e setBorder) do seu objeto do tipo JFrame, JInternalFrame, etc… Ex.: ((BasicInternalFrameUI)frame.getUI()).getNorthPane().setPreferredSize( new Dimension(0,0) ); frame.setBorder(new EmptyBorder(new Insets(0,0,0,0)));
Extrair nome do tipo Generico
ParameterizedType tipo = (ParameterizedType)this.getClass().getGenericSuperclass(); objectClass = (Class)tipo.getActualTypeArguments()[0]; http://blog.caelum.com.br/brincando-com-generics-o-bizarregenericdao/ http://blog.caelum.com.br/nao-posso-descobrir-nem-instanciar-tipos-genericos-porque/ http://www.guj.com.br/java/87606-extrair-nome-do-tipo-generico
Alinhar ícone e texto de um JButton
// Place text over center of icon; they both occupy the same space button.setVerticalTextPosition(SwingConstants.CENTER); button.setHorizontalTextPosition(SwingConstants.CENTER); // Place text above icon button.setVerticalTextPosition(SwingConstants.TOP); button.setHorizontalTextPosition(SwingConstants.CENTER); // Place text below icon button.setVerticalTextPosition(SwingConstants.BOTTOM); button.setHorizontalTextPosition(SwingConstants.CENTER); // Place text to the left of icon, vertically centered button.setVerticalTextPosition(SwingConstants.CENTER); … Continue lendo
Hello world!
Olá Mundo! O primeiro post não poderia ter outro nome né. Para que não seja algo totalmente inútil, vai então uma forma de dizer “Olá Mundo” em algumas linguagens de programação que programo. C++ #include <iostream> int main() { std::cout<<"Olá … Continue lendo
Publicado em C++, Java, PHP
1 comentário