当前位置: 代码迷 >> setLayout的解决方案
 
  • [求助]连接数据库(初级)

    [求助]连接数据库(初级) 下面的代码是从.mdb读出数据.然后显示在表格.有点问题,请教一下. 在 for(inti=0;i<data.length;i++) { data[i][0]=rs.getString(1); data[i][1]=rs.getString(2); data[i][2]=rs.getDate(3); data[i][3]=rs.getF...

    301
    热度
  • Timer错误

    Timer错误 newjava.util.Timer(1000,newBasePanel_Timer_actionAdapter1(this)).start(); 请问这条语句哪错了 搜索更多相关的解决方案: color="red">Timercolor="red">javacolor="red">utilcolor="red">newcolo...

    261
    热度
  • JAVA 实验报告 程序

    JAVA实验报告程序 我是搞C的,现在有两个JAVA程序要实现,都是为了应付实验报告,希望大家帮帮我,急啊,晚上7点就要上交! (1)设计一个随机显示单词功能,要求: ――显示当前时间; ――每隔3秒钟随机显示一个英文单词; ――要求用多线程技术实现; (2)学生选课(学生课程自定): ――所有的课程信息存在一个课程文件中; ――多个学生选课,每个学生选课的信息也...

    590
    热度
  • 求教,为什么我这窗体的图片显示不出来

    求教,为什么我这窗体的图片显示不出来 我想把一个路径为E:\\未命名2.JPG的图片显示到窗体上,但是为啥显示不出来呢?代码如下: packageft; importjava.awt.BorderLayout; importjava.awt.FileDialog; importjava.awt.FlowLayout; importjava.awt.Graphics...

    223
    热度
  • 把写好的代码放在手机里运行,

    把写好的代码放在手机里运行, 怎么样把写好的代码放在手机里运行。 比如我现在有一个关于计算器的代码:如下,我怎么样把放在手机里面然后运行成功。。。。。。。。程序代码:color=#0000FF>importjava.awt.*; color=#0000FF>importjava.awt.event.*; color=#0000FF>importjavax.swing.*...

    135
    热度
  • 关于JAVA Applet 背景图片问题

    关于JAVAApplet背景图片问题 当我添加 publicvoidpaint(Graphicsg)//<========================new===========================> { super.paint(g); g.drawImage(0,0,background); }时,会告诉我找不到符号。。。这是为什么呢? 我...

    786
    热度
  • 编译通过,运行时出问题

    编译通过,运行时出问题 /***@(#)CalculatorFrame.java**JFCCalculatorapplication**@author*@version1.002007/8/28*/ importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;importjava.util.EventListe...

    220
    热度
  • [求助]我写的简单代码不能使用,请朋友指点

    [求助]我写的简单代码不能使用,请朋友指点 /*这是一个简单的学生信息管理系统,其中我使用了数据库Access,可是界面能够运行出来,但里面的功能却不能用,可能是数据库那块弄得不好,不过驱动设置没错。我改了好久也没改出来。不知道哪里出错,想请高手指点一下,代码如下。*/importjava.awt.*;importjava.applet.Applet;importjav...

    120
    热度
  • 为什么我写的计算器不能按照我想要的4行4列排序呢?还有乍实现括号功能呢 ...

    为什么我写的计算器不能按照我想要的4行4列排序呢?还有乍实现括号功能呢? importjavax.swing.*;importjavax.swing.event.*;importjava.awt.*;importjava.awt.event.*;publicclasscomputer1extendsJFrameimplementsActionListener{Doubl...

    120
    热度
  • 我的计算器怎么运算不正确呢...(用栈了)_

    我的计算器怎么运算不正确呢...(用栈了)_ packagecaculator; importjava.awt.Container;importjava.awt.FlowLayout;importjava.awt.event.ActionEvent;importjava.awt.event.ActionListener; importjavax.swing.*; pub...

    388
    热度
  • Grahpics drawArc

    GrahpicsdrawArc 用GraphicsdrawArc绘制八个同心圆,园与园之间相差八个像素?这个怎么做啊 我是新手,希望大家多多帮我!多谢了! 搜索更多相关的解决方案: color="red">drawArccolor="red">Grahpics color='#FF8000'>------...

    218
    热度
  • [原创]好久没来了,来顶下

    [原创]好久没来了,来顶下 数字华容道importjava.awt.*;importjava.awt.event.*;importjavax.swing.*;publicclassHrdaoextendsJFrameimplementsActionListener{JMenuBarmenubar=newJMenuBar();JMenumenu1=newJMenu("文件...

    220
    热度
  • 用Javascript编写Swing程序

    用Javascript编写Swing程序 在QT上可以使用QML语言来描述界面,而QML使用的脚本语言是javascript,不过咱们做java程序的也能使用javascript来开发swing的界面。在jdk1.6中已经带有MozillaRhino的JavaScript脚本引擎,下面用javascript编写基于邮件服务器的测试聊天界面。YPP就爱技术网 先在程序要...

    149
    热度
  • implement

    implement 使用匿名类的时候可以集成接口吗? TextFieldtv2=newTextField(10); tv2.addActionListener(newPolicemanimplementsActionListener() { publicvoidactionPerformed(ActionEvente) { Stringnumber=e.getActi...

    245
    热度
  • 关于排序的棘手问题

    关于排序的棘手问题 importjava.awt.FlowLayout; importjava.awt.event.ActionEvent; importjava.awt.event.ActionListener; importjavax.swing.JButton; importjavax.swing.JFrame; importjavax.swing.JTextF...

    95
    热度
  • 约瑟夫环的程序嵌进界面问题 急!求指导

    约瑟夫环的程序嵌进界面问题急!求指导 这是一个约瑟夫环的问题,程序和界面都已经做出来了但是不知道怎么合起来求指导: 这是约瑟夫环的程序:publicperson(intpassword,intnumber){ this.password=password; this.number=number; } publicperson(intnumber){ this.numbe...

    337
    热度
  • 高手们,进来帮帮忙!

    高手们,进来帮帮忙! 高手们,能帮我加加注释呀! 以下是程序! ************************************************************* importjava.awt.*; importjavax.swing.*; importjava.awt.event.*; importjavax.swing.event.*; c...

    383
    热度
  • [求助]jar问题:如何制作可执行的jar文件

    [求助]jar问题:如何制作可执行的jar文件 例。如何将以下程序打包成。可执行的jar文件。程序源码如下。importjavax.swing.JFrame;importjavax.swing.JLabel;importjavax.swing.JTextField;importjavax.swing.JButton;importjava.awt.GridLayout;i...

    228
    热度
  • [原创]这个程序,要怎么来完成

    [原创]这个程序,要怎么来完成 大帮我看看,这是个计算器代码,要怎么能实现里面的数字运算,+,-,*,/,1~9的数字按扭,我已经监视了this.addActionListener,我不知道怎样算和写,这块代码请大家帮帮忙importjavax.swing.*;importjavax.swing.event.*;importjava.awt.*;importjava.a...

    225
    热度
  • [求助]怎样设置动态时间和静态时间

    [求助]怎样设置动态时间和静态时间 怎样往applet小程序中加载秒在走动的时间和静止的时间importjava.awt.*;importjava.applet.*;importjava.util.*;publicclassShijianriqiextendsApplet{publicvoidpaint(Graphicsg){Dateriqi=newDate();Gre...

    187
    热度