public void dameLineas(Graphics2D g2, JDesktopPane desktop) { Component[] c = desktop.getComponents(); for (int j = 0; j c.length; j++) { int x1 = c[j].getX() + c[j].getWidth() / 2; int y1 = c[j].getY() + c[j].getHeight() / 2; for (int k = j + 1; k c.length; k++) { int x2 = c[k].getX() + c[k].getWidth() / 2; int y2 = c[k].getY() + c[k].getHeight() / 2; g2.setColor(Color.green); g2.draw(new Line2D.Double(x1, y1, x2, y2)); } } }
public JInternalFrame setInternalFrame(int count, Point p) { int color[]={244645,4492246,17724962}; JInternalFrame iframe = new JInternalFrame("Relacion de Objetos " + count, true, true, true, true); iframe.setSize(200, 100); for(int a=0; acount; a++) { //agrego colores para diferenciar iframe.setBackground(new Color(color[a])); } /*******************************/ iframe.setLocation(p.x, p.y); iframe.setVisible(true); return iframe; }
Negocios Mortgage Claim Loans And Donation Software Insurance Commodities Mesothelioma Law Firm Loans Health Rehab Gas/Electricity Mobile casino Fashion and Design Bufete de Abogados Degree Structures Annuity Settlement Bolsa mortgage Attomey Trading Credit Forex Trading Laws and lawyers Curso de inglés básico Lawyer Cómo hacer dinero en línea Donate Recovery Dinero Hosting Online games Casino Conference Call Cord Blood Acciones Donar Auto en Crédito Fiscal Abogados Salud Hoteles Fotografía digital Seguro de coche Cotizaciones Colorado Transfer Donate Car to Charity California Juegos online Classes Treatment Registro de Dominios baratos Hosting Web Hosting y Dominios money
No hay comentarios:
Publicar un comentario